Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow disable #117

Open
tormodmacleod opened this issue Aug 21, 2024 · 0 comments
Open

allow disable #117

tormodmacleod opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tormodmacleod
Copy link

it'd be nice to be able to disable the provisioner in certain circumstances. we use it to copy the AMIs to our DR account. however we sometimes create images that are only ever going to be used in the dev environment. for example, we might only want to create an image if we're running on a protected branch in our CICD system

  post-processor "ami-copy" {
    ami_users        = [123456789012]
    role_name        = "ec2-image-backup"
    ensure_available = true
    disable          = var.ci_commit_branch == "main" ? false : true
  }

this would save us having to clean a bunch of images out of our DR account 🙂

@martinbaillie martinbaillie added help wanted Extra attention is needed enhancement New feature or request labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants