Skip to content

Commit 807616b

Browse files
docs: updated to reference apprunner templates (#72)
1 parent 5b9cb07 commit 807616b

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

README.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,60 @@ Leading to the latest entry-point, which will be used on the Sysdig Secure > Get
2121
### Pull Request
2222

2323
When the PR is drafted, a new template will be available for testing:
24-
- For AppRunner
25-
<br/>`https://cf-templates-cloudvision-ci.s3-eu-west-1.amazonaws.com/apprunner/pr/<PR_NAME>/entry-point.yaml`
2624
- For ECS
27-
<br/>`https://cf-templates-cloudvision-ci.s3-eu-west-1.amazonaws.com/ecs/pr/<PR_NAME>/entry-point.yaml`
25+
<br/>`https://cf-templates-cloudvision-ci.s3-eu-west-1.amazonaws.com/ecs/pr/<PR_NAME>/entry-point.yaml`
26+
- For AppRunner
27+
<br/>`https://cf-templates-cloudvision-ci.s3-eu-west-1.amazonaws.com/apprunner/pr/<PR_NAME>/entry-point.yaml`
2828

2929

3030
### Testing
3131

3232
see [Makefile](templates_ecs/Makefile)
3333

34-
- Validation
34+
#### Validation
35+
36+
ECS:
37+
38+
```bash
39+
$ aws cloudformation validate-template --template-body file://./templates_ecs/CloudVision.yaml
40+
```
41+
42+
AppRunner:
3543

3644
```bash
37-
$ aws cloudformation validate-template --template-body file://./templates/CloudVision.yaml
45+
$ aws cloudformation validate-template --template-body file://./templates_apprunner/SecureForCloudAppRunner.yaml
3846
```
3947

40-
- Launch Template
48+
#### Launch Template
49+
50+
ECS full cycle:
4151

42-
full cycle
52+
```
53+
-- test
54+
$ aws cloudformation delete-stack --stack-name test ; \
55+
sleep 10 ; \
56+
aws cloudformation deploy --template-file templates_ecs/CloudVision.yaml --stack-name test ; \
57+
aws cloudformation describe-stack-events --stack-name test
58+
```
59+
60+
AppRunner full cycle:
4361

4462
```
4563
-- test
4664
$ aws cloudformation delete-stack --stack-name test ; \
4765
sleep 10 ; \
48-
aws cloudformation deploy --template-file templates/CloudVision.yaml --stack-name test ; \
66+
aws cloudformation deploy --template-file templates_apprunner/SecureForCloudAppRunner.yaml --stack-name test ; \
4967
aws cloudformation describe-stack-events --stack-name test
5068
```
5169

52-
- Test Template wizard (UI)
70+
#### Test Template wizard (UI)
5371
```
5472
Aws console > cloudformation > create new stack (template, upload template: select ./templates/Cloudvision.yaml)
5573
```
5674
- note: this will upload the template into an s3 bucket, remember to delete it afterwards
5775

5876

59-
- **Cleanup** <br/>Delete stack to clean test environment. [CFT limitation does not allow to automatically delete non-empty S3 bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html), so Stack deletion will fail when you request it. Delete S3 bucket manually and relaunch deletion for a full cleanup.
77+
#### Cleanup
78+
79+
Delete stack to clean test environment. [CFT limitation does not allow to automatically delete non-empty S3 bucket](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html), so Stack deletion will fail when you request it. Delete S3 bucket manually and relaunch deletion for a full cleanup.
6080

0 commit comments

Comments
 (0)