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

chore: source controlling cfn templates that will be used for our release process #345

Merged
merged 4 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cfn/code_artifact.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
Comment on lines +1 to +2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

AWSTemplateFormatVersion: 2010-09-09
Description: "Template for CodeArtifact repositories. Creates Domain if CreateDomainFlag is True"
Parameters:
Expand Down
27 changes: 3 additions & 24 deletions cfn/prod-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

AWSTemplateFormatVersion: 2010-09-09
Description: >-
Template to build a CodeBuild Project, assumes that GitHub credentials are
Expand Down Expand Up @@ -75,9 +78,6 @@ Resources:
S3Logs:
Status: DISABLED
EncryptionDisabled: false
Metadata:
"AWS::CloudFormation::Designer":
id: 46a42d6b-ae90-4ac0-8adf-e529eef5e9ac
CodeBuildServiceRole:
Type: "AWS::IAM::Role"
Properties:
Expand All @@ -94,9 +94,6 @@ Resources:
- !Ref ParameterStorePolicy
- "arn:aws:iam::aws:policy/AWSCodeArtifactReadOnlyAccess"
- "arn:aws:iam::aws:policy/AWSCodeArtifactAdminAccess"
Metadata:
"AWS::CloudFormation::Designer":
id: 19b17bdc-5d49-4f12-93e6-6d761b7ce324
CodeBuildBatchPolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand All @@ -122,9 +119,6 @@ Resources:
}
]
}
Metadata:
"AWS::CloudFormation::Designer":
id: 894a45c5-5dc7-4f11-be65-8bf5e37e289d
CodeBuildBasePolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand Down Expand Up @@ -178,19 +172,13 @@ Resources:
}
]
}
Metadata:
"AWS::CloudFormation::Designer":
id: 3dafd088-2792-4a41-b612-d9d049721644
AccountIdParameter:
Type: "AWS::SSM::Parameter"
Properties:
Description: Parameter to store our account id so CodeBuild specs can access it
Name: /CodeBuild/AccountId
Type: String
Value: !Sub "${AWS::AccountId}"
Metadata:
"AWS::CloudFormation::Designer":
id: 845aaadf-b869-42fa-90d5-c2557829b55e
SecretsManagerPolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand All @@ -211,9 +199,6 @@ Resources:
}
]
}
Metadata:
"AWS::CloudFormation::Designer":
id: 41e195f9-22c7-44b7-9793-0232701f6223
CryptoToolsKMS:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand All @@ -238,9 +223,6 @@ Resources:
}
]
}
Metadata:
"AWS::CloudFormation::Designer":
id: dd99a5ab-b579-4f13-a80f-d72c35896892
ParameterStorePolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand All @@ -259,6 +241,3 @@ Resources:
}
]
}
Metadata:
"AWS::CloudFormation::Designer":
id: f67609eb-975a-4747-8065-aea5b1fc038d