Skip to content

Commit b90d851

Browse files
author
iru
authored
Update CONTRIBUTE.md
1 parent 93f26a2 commit b90d851

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CONTRIBUTE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,26 @@ Feel free to release as soon as needed.
132132
- use [semver](https://semver.org) notation
133133
- A changelog description will be generated based on [conventional-commints](https://www.conventionalcommits.org/en/v1.0.0/) , but please verify all changes are included and explain acordingly if/when required
134134
- Module official releases will be published at terraform registry automatically
135+
136+
137+
---
138+
139+
140+
### How to iterate cloud-connector modification testing
141+
142+
Build a custom docker image of cloud-connector `docker build . -t <DOCKER_IMAGE> -f ./build/cloud-connector/Dockerfile` and upload it to any registry (like dockerhub).
143+
Modify the [var.image](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/tree/master/modules/services/cloud-connector/variables.tf) variable to point to your image and deploy
144+
145+
### How can I iterate ECS modification testing
146+
147+
After applying your modifications (vía terraform for example) restart the service
148+
```
149+
$ aws ecs update-service --force-new-deployment --cluster sysdig-secure-for-cloud-ecscluster --service sysdig-secure-for-cloud-cloudconnector --profile <AWS_PROFILE>
150+
```
151+
For the AWS_PROFILE, set your `~/.aws/config` to impersonate
152+
```
153+
[profile secure-for-cloud]
154+
region=eu-central-1
155+
role_arn=arn:aws:iam::<AWS_MANAGEMENT_ORGANIZATION_ACCOUNT>:role/OrganizationAccountAccessRole
156+
source_profile=<AWS_MANAGEMENT_ACCOUNT_PROFILE>
157+
```

0 commit comments

Comments
 (0)