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" {
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" {

View File

@@ -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
}

View File

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