Skip to content

Commit

Permalink
terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 9, 2024
1 parent bac210a commit 3f66fae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions linux.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
moved {
from = module.main
to = module.amazon_linux
to = module.amazon_linux
}

module "amazon_linux" {
Expand All @@ -24,8 +24,8 @@ module "amazon_linux" {
]
packer_source_type = "S3"
packer_bucket = {
name = aws_s3_bucket.assets_bucket.bucket
key = "linux-image-pipeline.zip"
name = aws_s3_bucket.assets_bucket.bucket
key = "linux-image-pipeline.zip"
}
ansible_repo = data.aws_codecommit_repository.ansible
goss_repo = data.aws_codecommit_repository.goss
Expand All @@ -45,6 +45,6 @@ output "linux_parameters" {
sensitive = true
}

output linux_bucket {
output "linux_bucket" {
value = module.amazon_linux.s3_bucket
}
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resource "aws_s3_bucket" "assets_bucket" {

resource "aws_s3_bucket_server_side_encryption_configuration" "state_bucket_encryption" {
for_each = tomap({
state_bucket = aws_s3_bucket.state_bucket.bucket
state_bucket = aws_s3_bucket.state_bucket.bucket
assets_bucket = aws_s3_bucket.assets_bucket.bucket
})
bucket = each.value
Expand All @@ -24,8 +24,8 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "state_bucket_encr

data "aws_iam_policy_document" "s3_access" {
statement {
effect = "Allow"
actions = ["s3:*"]
effect = "Allow"
actions = ["s3:*"]
resources = [
aws_s3_bucket.state_bucket.arn,
aws_s3_bucket.assets_bucket.arn
Expand Down

0 comments on commit 3f66fae

Please sign in to comment.