Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
agjmills committed Aug 20, 2024
1 parent 58d3c08 commit fc05e1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = var.region
region = var.region
}

resource "aws_organizations_account" "production" {
Expand Down Expand Up @@ -42,5 +42,5 @@ module "production_terraform_state" {
providers = {
aws = aws.production
}
depends_on = [ aws_organizations_account.production ]
depends_on = [aws_organizations_account.production]
}
10 changes: 5 additions & 5 deletions modules/terraform_state/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ data "aws_region" "current" {}
data "aws_caller_identity" "current" {}

locals {
region = data.aws_region.current.name
account_id = data.aws_caller_identity.current.account_id
region = data.aws_region.current.name
account_id = data.aws_caller_identity.current.account_id
}

resource "aws_s3_bucket" "this" {
bucket = "tf-state-${local.region}-${local.account_id}"
}

resource "aws_dynamodb_table" "this" {
name = "tf-state-${local.region}-${local.account_id}"
billing_mode = "PAY_PER_REQUEST"
hash_key = "LockID"
name = "tf-state-${local.region}-${local.account_id}"
billing_mode = "PAY_PER_REQUEST"
hash_key = "LockID"

attribute {
name = "LockID"
Expand Down
2 changes: 1 addition & 1 deletion organization.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "aws_organizations_organizational_unit" "suspended" {

resource "aws_organizations_organizational_unit" "security" {
name = "Security"
parent_id = data.aws_organizations_organization.org.roots[0].id
parent_id = data.aws_organizations_organization.org.roots[0].id
}

resource "aws_organizations_organizational_unit" "exceptions" {
Expand Down

0 comments on commit fc05e1e

Please sign in to comment.