Setting Terraform Cloud

This commit is contained in:
2023-09-22 23:57:43 -03:00
parent 6a36d215b9
commit 334202bf40
3 changed files with 11 additions and 10 deletions

View File

@@ -18,10 +18,10 @@ resource "aws_s3_bucket" "default" {
resource "aws_s3_bucket_public_access_block" "bucket_public_disabled" { resource "aws_s3_bucket_public_access_block" "bucket_public_disabled" {
bucket = aws_s3_bucket.default.id bucket = aws_s3_bucket.default.id
block_public_acls = true block_public_acls = false
block_public_policy = false block_public_policy = false
ignore_public_acls = true ignore_public_acls = false
restrict_public_buckets = true restrict_public_buckets = false
} }
resource "aws_s3_bucket_ownership_controls" "s3_bucket_acl_ownership" { resource "aws_s3_bucket_ownership_controls" "s3_bucket_acl_ownership" {

View File

@@ -12,12 +12,12 @@ terraform {
# EC2 Instances # EC2 Instances
resource "aws_key_pair" "ssh_key_main" { 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 public_key = var.ssh_public_key_main
} }
resource "aws_key_pair" "ssh_key_ci_cd" { 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 public_key = var.ssh_public_key_ci_cd
} }

View File

@@ -1,9 +1,10 @@
terraform { terraform {
cloud { required_version = ">1.5"
organization = "vitorhnbatista" backend "remote" {
organization = "HideyoshiNakazone"
workspaces { workspaces {
name = "hideyoshi-portfolio" prefix = "hideyoshi-portfolio-"
}
} }
}
} }