Skip to content

Conversation

@jayhill
Copy link
Contributor

@jayhill jayhill commented Sep 30, 2025

We had a chicken-and-egg issue where during our GH Actions workflows, SSM parameter validation would be checking for the existence of parameters before Terraform created them.

By moving parameters to the bootstrap process, they will be set in advance and values can be set interactively without having to go to the AWS console or use the CLI.

@github-actions
Copy link

Terraform Dev Plan 📋

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # module.main.aws_ssm_parameter.alert_email will be destroyed
  # (because aws_ssm_parameter.alert_email is not in configuration)
  - resource "aws_ssm_parameter" "alert_email" {
      - arn             = "arn:aws:ssm:us-east-2:253137917187:parameter/jaildata/alert-email" -> null
      - data_type       = "text" -> null
      - description     = "E-mail address for JailData alerts" -> null
      - id              = "/jaildata/alert-email" -> null
      - name            = "/jaildata/alert-email" -> null
      - tags            = {} -> null
      - tags_all        = {} -> null
      - tier            = "Standard" -> null
      - type            = "String" -> null
      - value           = (sensitive value) -> null
      - value_wo        = (write-only attribute) -> null
      - version         = 1 -> null
        # (2 unchanged attributes hidden)
    }

Plan: 0 to add, 0 to change, 1 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

@jayhill jayhill merged commit b567894 into main Sep 30, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants