Create
Create or update a CloudFormation stack
Create
Create or update a CloudFormation stack
yaml
type: io.kestra.plugin.aws.cloudformation.CreateExamples
yaml
id: aws_cfn_create_stack
namespace: dev
tasks:
- id: create_s3_bucket
type: io.kestra.plugin.aws.cloudformation.Create
accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
region: "us-east-1"
stackName: "my-s3-bucket-stack"
waitForCompletion: true
templateBody: |
AWSTemplateFormatVersion: '2010-09-09'
Description: A simple S3 bucket
Resources:
MyS3Bucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: "kestra-cfn-test-1"
Outputs:
BucketName:
Value: !Ref MyS3Bucket
Description: Name of the S3 bucket created
Properties
stackName *Requiredstring
accessKeyId string
compatibilityMode booleanstring
endpointOverride string
forcePathStyle booleanstring
parameters object
SubTypestring
region string
secretKeyId string
sessionToken string
stsEndpointOverride string
stsRoleArn string
stsRoleExternalId string
stsRoleSessionDuration string
Default
PT15MstsRoleSessionName string
templateBody string
waitForCompletion booleanstring
Default
trueOutputs
stackId string
stackName string
stackOutputs object
SubTypestring