File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
aws-codeguruprofiler-profilinggroup Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,21 @@ pre-commit run --all-files && AWS_REGION=us-east-1 mvn clean package
34
34
```
35
35
cfn submit -v --region us-east-1
36
36
```
37
- 2. Create a sample CloudFormation stack that defines a profiling group:
37
+ 2. Update the default version used by CloudFormation:
38
+ ```
39
+ # Get the latest version in your account
40
+ Arn=`aws cloudformation list-type-versions --region us-east-1 --type RESOURCE --type-name "AWS::CodeGuruProfiler::ProfilingGroup" | jq '.TypeVersionSummaries[].Arn' | sort -nr | head -n 1 | tr -d '"'`
41
+
42
+ # Update the default version used by CloudFormation
43
+ aws cloudformation set-type-default-version --region us-east-1 --arn "$Arn"
44
+ ```
45
+ 3. Create a sample CloudFormation stack that defines a profiling group:
38
46
```
39
47
aws cloudformation create-stack --region us-east-1 --template-body "file://sample-template.json" --stack-name "sample-profiling-group-resource-creation"
40
48
```
41
- 3 . Validate the creation of the profiling group!
42
- 4 . Delete the sample stack:
49
+ 4 . Validate the creation of the profiling group!
50
+ 5 . Delete the sample stack:
43
51
```
44
52
aws cloudformation delete-stack --region us-east-1 --stack-name "sample-profiling-group-resource-creation"
45
53
```
46
- 5 . Validate the profiling group has been deleted!
54
+ 6 . Validate the profiling group has been deleted!
You can’t perform that action at this time.
0 commit comments