-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdown-test-template-updated.yaml
More file actions
51 lines (46 loc) · 1.46 KB
/
markdown-test-template-updated.yaml
File metadata and controls
51 lines (46 loc) · 1.46 KB
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
42
43
44
45
46
47
48
49
50
51
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Updated template for testing markdown output generation'
Parameters:
Environment:
Type: String
Default: test
Resources:
MarkdownTestBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub "markdown-test-${Environment}-${AWS::StackName}"
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
# Added versioning to trigger a change
VersioningConfiguration:
Status: Enabled
MarkdownTestParameter:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub "/${Environment}/markdown-test/${AWS::StackName}"
Type: String
Value: "updated-markdown-test-value" # Changed value
Description: "Updated parameter for markdown output testing"
# Added new resource
MarkdownTestRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service: lambda.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
Outputs:
BucketArn:
Value: !GetAtt MarkdownTestBucket.Arn
ParameterArn:
Value: !Sub "arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter${MarkdownTestParameter}"
RoleArn:
Value: !GetAtt MarkdownTestRole.Arn