Setting Terraform Cloud
This commit is contained in:
@@ -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" {
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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-"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user