Skip to content

Commit 3ca9259

Browse files
author
iru
committed
chore: undo. recover unwanted deletion
1 parent 4914965 commit 3ca9259

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

use-cases/org-existing-cloudtrail-ecs-vpc-subnet.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ module "utils_ecs-vpc" {
9595
- This will be required for the CloudConnector SQS Topic subscription.
9696
- Use [`./modules/infrastructure/cloudtrail/sns_permissions.tf`](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/blob/master/modules/infrastructure/cloudtrail/sns_permissions.tf#L22) as guideline
9797

98+
99+
- Existing ECS Cluster Workload Setup
100+
- `ECS_CLUSTER_NAME` ex.: "sfc"
101+
102+
- Existing Networking Setup
103+
- `ECS_VPC_ID` ex.: "vpc-0e91bfef6693f296b"
104+
- `ECS_VPC_SUBNET_PRIVATE_ID_X` Two subnets for the VPC. ex.: "subnet-0c7d803ecdc88437b"
105+
106+
98107
### Terraform Manifest Snippet
99108

100109
```terraform
@@ -113,13 +122,12 @@ provider "sysdig" {
113122
}
114123
115124
provider "aws" {
116-
region = "<AWS_REGION>" # must match s3 AND sns region
125+
region = "<AWS_REGION>" # must match s3 AND sns region
117126
}
118127
119-
# you can setup this provider as desired, just giving an example
120128
provider "aws" {
121129
alias = "member"
122-
region = "<AWS_REGION>" # must match s3 AND sns region
130+
region = "<AWS_REGION>" # must match s3 AND sns region
123131
assume_role {
124132
# 'OrganizationAccountAccessRole' is the default role created by AWS for management-account users to be able to admin member accounts.
125133
# <br/>https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html
@@ -139,5 +147,10 @@ module "sysdig-sfc" {
139147
140148
cloudtrail_sns_arn = "<CLOUDTRAIL_SNS_ARN>"
141149
cloudtrail_s3_arn = "<CLOUDTRAIL_S3_ARN>"
150+
151+
ecs_cluster_name = "<ECS_CLUSTER_NAME>"
152+
ecs_vpc_id = "<ECS_VPC_ID>"
153+
ecs_vpc_subnets_private_ids = ["<ECS_VPC_SUBNET_PRIVATE_ID_1>","<ECS_VPC_SUBNET_PRIVATE_ID_2>"]
154+
142155
}
143156
```

0 commit comments

Comments
 (0)