diff --git a/infra/.gitignore b/example/.gitignore similarity index 100% rename from infra/.gitignore rename to example/.gitignore diff --git a/infra/README.md b/example/README.md similarity index 100% rename from infra/README.md rename to example/README.md diff --git a/infra/ecr.tf b/example/ecr.tf similarity index 96% rename from infra/ecr.tf rename to example/ecr.tf index 0970965..bcd66e3 100644 --- a/infra/ecr.tf +++ b/example/ecr.tf @@ -32,9 +32,9 @@ resource "local_file" "build_script" { # Update the pod manifest with the new image tag if [[ "$OSTYPE" == "linux-gnu"* ]]; then - sed -i "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" infra/pod.yaml + sed -i "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" ./pod.yaml elif [[ "$OSTYPE" == "darwin"* ]]; then - sed -i '' "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" infra/pod.yaml + sed -i '' "s|image:.*|image: ${module.ecr.repository_url}:$${TAG}|g" ./pod.yaml else echo "Unsupported OS: $OSTYPE" exit 1 diff --git a/infra/eks.tf b/example/eks.tf similarity index 100% rename from infra/eks.tf rename to example/eks.tf diff --git a/infra/iam.tf b/example/iam.tf similarity index 100% rename from infra/iam.tf rename to example/iam.tf diff --git a/infra/main.tf b/example/main.tf similarity index 100% rename from infra/main.tf rename to example/main.tf diff --git a/infra/variables.tf b/example/variables.tf similarity index 73% rename from infra/variables.tf rename to example/variables.tf index a8dea51..f012649 100644 --- a/infra/variables.tf +++ b/example/variables.tf @@ -1,4 +1,5 @@ variable "role_arn" { description = "The ARN of the role to assume in the secondary account to provision resources ('account_b' IAM role)" type = string + default = "arn:aws:iam::361548816046:role/terraform" } diff --git a/infra/vpc.tf b/example/vpc.tf similarity index 100% rename from infra/vpc.tf rename to example/vpc.tf diff --git a/infra/pod.yaml b/pod.yaml similarity index 100% rename from infra/pod.yaml rename to pod.yaml