diff --git a/bucket/bucket.tf b/bucket/bucket.tf index 0f61229..3b92659 100644 --- a/bucket/bucket.tf +++ b/bucket/bucket.tf @@ -18,10 +18,10 @@ resource "aws_s3_bucket" "default" { resource "aws_s3_bucket_public_access_block" "bucket_public_disabled" { bucket = aws_s3_bucket.default.id - block_public_acls = true + block_public_acls = false block_public_policy = false - ignore_public_acls = true - restrict_public_buckets = true + ignore_public_acls = false + restrict_public_buckets = false } resource "aws_s3_bucket_ownership_controls" "s3_bucket_acl_ownership" { diff --git a/instances/instance.tf b/instances/instance.tf index 0c2113c..f35a028 100644 --- a/instances/instance.tf +++ b/instances/instance.tf @@ -12,12 +12,12 @@ terraform { # EC2 Instances resource "aws_key_pair" "ssh_key_main" { - key_name = "ssh_key_main" + key_name = "${var.project_name}_ssh_key_main" public_key = var.ssh_public_key_main } resource "aws_key_pair" "ssh_key_ci_cd" { - key_name = "ssh_key_ci_cd" + key_name = "${var.project_name}_ssh_key_ci_cd" public_key = var.ssh_public_key_ci_cd } diff --git a/terraform-cloud.tf b/terraform-cloud.tf index 7fb69fc..b91370f 100644 --- a/terraform-cloud.tf +++ b/terraform-cloud.tf @@ -1,9 +1,10 @@ terraform { - cloud { - organization = "vitorhnbatista" + required_version = ">1.5" + backend "remote" { + organization = "HideyoshiNakazone" - workspaces { - name = "hideyoshi-portfolio" + workspaces { + prefix = "hideyoshi-portfolio-" + } } - } } \ No newline at end of file