-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.yaml
More file actions
41 lines (37 loc) · 1001 Bytes
/
test.yaml
File metadata and controls
41 lines (37 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
AWSTemplateFormatVersion: '2010-09-09'
Description: Minimal CloudFormation template with example S3 bucket
Parameters:
Environment:
Type: String
Default: dev
AllowedValues:
- dev
- staging
- prod
Description: Environment name
ProjectName:
Type: String
Default: my-project
Description: Project name for resource tagging
Resources:
ExampleBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub '${ProjectName}-${Environment}-${AWS::AccountId}'
Tags:
- Key: ManagedBy
Value: ops0
- Key: ManagedIaC
Value: cloudformation
- Key: ops0:conversationID
Value: 'a8403511-6cf8-4f95-95f0-33244346286b'
- Key: Environment
Value: !Ref Environment
- Key: Project
Value: !Ref ProjectName
Outputs:
BucketName:
Description: Name of the example S3 bucket
Value: !Ref ExampleBucket
Export:
Name: !Sub '${AWS::StackName}-BucketName'