This is a Concourse CI resource that controls the deployment of CloudFormation stacks.
You need to add this as a resource type to use it in your pipeline.
resource_types:
- name: cloudformation-resource
type: docker-image
source:
repository: pipelineci/cloudformation-resource-
name: Required. The stack name -
aws_access_key_id: Required. -
aws_secret_access_key: Required. -
region: Required.
aws_access_key_id and aws_secret_access_key may be omitted if the EC2
instance has an IAM role with the correct permissions.
Resource configuration for a CloudFormation stack:
resources:
- name: my-stack
type: cloudformation
source: name: my-stack
aws_access_key_id: AUDFDQ7CA7JO6U56EQFW
aws_secret_access_key: VY1SazRkI8M1JEIIUnwmxzMhfjaIzZABNVcqanj8
region: ap-southeast-2Creating/updating the stack:
jobs:
- name: update-stack
plan:
- get: repo
trigger: true
- put: my-stack
params:
template: repo/my-stack.template
parameters: repo/my-stack-parameters.jsonDelete the stack:
jobs:
- name: delete-stack
plan:
- put: my-stack
params:
delete: trueGet stack outputs:
jobs:
- name: get-stack-outputs
plan:
- get: my-stackIf a stack is updated or created this resource is triggered.
There is no in behaviour implemented.
Create, update or delete the stack.
template: Required. The path of the CloudFormation template.parameters: Optional. The path of the CloudFormation parameters.tags: Optional. The path of the CloudFormation tags.capabilities: Optional. List of capabilities.delete: Optional. Set totrueto delete the stack.wait: Optional. Defaults to true. If false is set it will update/create the stack and not wait for it to complete.changeset: Optional. If set it will apply changeset operations instead of create/update. Takes a list of operations:createorexecuteor both i.e. [create, execute].