Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

aws-samples/aws-cloudformation-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 17, 2022
b7b7085 · May 17, 2022

History

6 Commits
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
May 17, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022
Mar 30, 2022

repository moved, maintained elsewhere -> https://github.com/curlim/aws-cloudformation-stack

Cross-Account Cloudformation Stack Resource Provider

This AWS CloudFormation resource provider implements the creation/update/delete of a AWS CloudFormation stack cross-account

ProServe::CloudFormation::Stack

See example usage of the resource below. Detailed documentation can be found in the /docs folder.

Usage

Simple Example:

TestStack:
  Type: ProServe::CloudFormation::Stack
  Properties:
    AccountId: 999999999999
    AssumeRoleName: OrganizationAccountAccessRole
    StackName: myTestStack
    Template: |
        Description: myTestStack
        Parameters:
          TestParam:
            Type: String
        Resources:
          DummyParameter:
            Type: AWS::SSM::Parameter
            Properties:
              Name: /test-stack/abc123
              Value: !Ref TestParam
              Type: String
    Parameters:
      - Key: TestParam
        Value: abc123
    Tags:
      - Key: mycorp:CostCenter
        Value: ABC123

Quickstart

You can use the following link to deploy the CloudFormation resource provider directly into your AWS account. Ensure you are logged into the AWS Console before following it. After following the link, ensure you picked the desired Region on the top right within the AWS Console.

Quickstart CloudFormation Link

Hints

  • While code samples in this repository has been tested and believe it works well, as always, be sure to test it in your environment before using it in production!

The RPDK will automatically generate the correct resource model from the schema whenever the project is built via Maven. You can also do this manually with the following command: cfn generate.

Please don't modify files under target/generated-sources/rpdk, as they will be automatically overwritten.

The code uses Lombok, and you may have to install IDE integrations to enable auto-complete for Lombok-annotated classes.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.