Interface ICloudFormationDeployStackInstancesActionProps
Properties for the CloudFormationDeployStackInstancesAction.
Inherited Members
Namespace: Amazon.CDK.AWS.CodePipeline.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICloudFormationDeployStackInstancesActionProps : ICommonAwsActionProps, ICommonActionProps, ICommonCloudFormationStackSetOptions
Syntax (vb)
Public Interface ICloudFormationDeployStackInstancesActionProps
Inherits ICommonAwsActionProps, ICommonActionProps, ICommonCloudFormationStackSetOptions
Remarks
ExampleMetadata: infused
Examples
Pipeline pipeline;
Artifact sourceOutput;
pipeline.AddStage(new StageOptions {
StageName = "DeployStackSets",
Actions = new [] {
// First, update the StackSet itself with the newest template
new CloudFormationDeployStackSetAction(new CloudFormationDeployStackSetActionProps {
ActionName = "UpdateStackSet",
RunOrder = 1,
StackSetName = "MyStackSet",
Template = StackSetTemplate.FromArtifactPath(sourceOutput.AtPath("template.yaml")),
// Change this to 'StackSetDeploymentModel.organizations()' if you want to deploy to OUs
DeploymentModel = StackSetDeploymentModel.SelfManaged(),
// This deploys to a set of accounts
StackInstances = StackInstances.InAccounts(new [] { "111111111111" }, new [] { "us-east-1", "eu-west-1" })
}),
// Afterwards, update/create additional instances in other accounts
new CloudFormationDeployStackInstancesAction(new CloudFormationDeployStackInstancesActionProps {
ActionName = "AddMoreInstances",
RunOrder = 2,
StackSetName = "MyStackSet",
StackInstances = StackInstances.InAccounts(new [] { "222222222222", "333333333333" }, new [] { "us-east-1", "eu-west-1" })
}) }
});
Synopsis
Properties
Parameter |
Parameter values that only apply to the current Stack Instances. |
Stack |
Specify where to create or update Stack Instances. |
Stack |
The name of the StackSet we are adding instances to. |
Properties
ParameterOverrides
Parameter values that only apply to the current Stack Instances.
virtual StackSetParameters ParameterOverrides { get; }
Property Value
Remarks
These parameters are shared between all instances added by this action.
Default: - no parameters will be overridden
StackInstances
Specify where to create or update Stack Instances.
StackInstances StackInstances { get; }
Property Value
Remarks
You can specify either AWS Accounts Ids or AWS Organizations Organizational Units.
StackSetName
The name of the StackSet we are adding instances to.
string StackSetName { get; }
Property Value
System.