diff --git a/examples/complete/components/spacelift-automation/main.tf b/examples/complete/components/spacelift-automation/main.tf index b4a3c45..e932c76 100644 --- a/examples/complete/components/spacelift-automation/main.tf +++ b/examples/complete/components/spacelift-automation/main.tf @@ -7,4 +7,7 @@ module "automation" { root_modules_path = var.root_modules_path all_root_modules_enabled = var.all_root_modules_enabled + + aws_integration_id = var.aws_integration_id + aws_integration_enabled = true } diff --git a/examples/complete/components/spacelift-automation/tfvars/example.tfvars b/examples/complete/components/spacelift-automation/tfvars/example.tfvars index 2712a4a..4163048 100644 --- a/examples/complete/components/spacelift-automation/tfvars/example.tfvars +++ b/examples/complete/components/spacelift-automation/tfvars/example.tfvars @@ -4,3 +4,4 @@ github_enterprise = { repository = "terraform-spacelift-automation" root_modules_path = "../../../../examples/complete/components" all_root_modules_enabled = true +aws_integration_id = "01JEC7ZACVKHTSVY4NF8QNZVVB" diff --git a/examples/complete/components/spacelift-automation/variables.tf b/examples/complete/components/spacelift-automation/variables.tf index 9899743..395f434 100644 --- a/examples/complete/components/spacelift-automation/variables.tf +++ b/examples/complete/components/spacelift-automation/variables.tf @@ -1,3 +1,8 @@ +variable "aws_integration_id" { + type = string + description = "ID of the AWS integration to attach." +} + variable "branch" { type = string description = "Specify which branch to use within the infrastructure repository." diff --git a/examples/single-instance/root-modules/spacelift-automation/backend.tf.json b/examples/single-instance/root-modules/spacelift-automation-example2/backend.tf.json similarity index 100% rename from examples/single-instance/root-modules/spacelift-automation/backend.tf.json rename to examples/single-instance/root-modules/spacelift-automation-example2/backend.tf.json diff --git a/examples/single-instance/root-modules/spacelift-automation/main.tf b/examples/single-instance/root-modules/spacelift-automation-example2/main.tf similarity index 78% rename from examples/single-instance/root-modules/spacelift-automation/main.tf rename to examples/single-instance/root-modules/spacelift-automation-example2/main.tf index e7bf048..dc2077f 100644 --- a/examples/single-instance/root-modules/spacelift-automation/main.tf +++ b/examples/single-instance/root-modules/spacelift-automation-example2/main.tf @@ -7,7 +7,9 @@ module "automation" { repository = "terraform-spacelift-automation" root_modules_path = "../../../../examples/single-instance/root-modules" all_root_modules_enabled = true - aws_integration_enabled = false + + aws_integration_id = "01JEC7ZACVKHTSVY4NF8QNZVVB" + aws_integration_enabled = true root_module_structure = "SingleInstance" } diff --git a/examples/single-instance/root-modules/spacelift-automation/stack.yaml b/examples/single-instance/root-modules/spacelift-automation-example2/stack.yaml similarity index 100% rename from examples/single-instance/root-modules/spacelift-automation/stack.yaml rename to examples/single-instance/root-modules/spacelift-automation-example2/stack.yaml diff --git a/examples/single-instance/root-modules/spacelift-automation/versions.tf b/examples/single-instance/root-modules/spacelift-automation-example2/versions.tf similarity index 100% rename from examples/single-instance/root-modules/spacelift-automation/versions.tf rename to examples/single-instance/root-modules/spacelift-automation-example2/versions.tf