-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from clouddrove/feat/issue-242
Add replication configuration and efs policy
- Loading branch information
Showing
11 changed files
with
282 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ updates: | |
- "clouddrove-ci" | ||
# Add reviewer | ||
reviewers: | ||
- "approvers" | ||
|
||
- "approvers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ jobs: | |
secrets: | ||
GITHUB: ${{ secrets.GITHUB }} | ||
with: | ||
assignees: 'clouddrove-ci' | ||
assignees: 'clouddrove-ci' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
provider "aws" { | ||
region = "us-east-1" | ||
} | ||
|
||
locals { | ||
environment = "test" | ||
label_order = ["name", "environment"] | ||
availability_zones = ["us-east-1a", "us-east-1b"] | ||
} | ||
|
||
module "vpc" { | ||
source = "clouddrove/vpc/aws" | ||
version = "2.0.0" | ||
name = "vpc" | ||
environment = local.environment | ||
label_order = local.label_order | ||
cidr_block = "172.16.0.0/16" | ||
} | ||
|
||
#tfsec:ignore:aws-ec2-no-excessive-port-access # Ingnored because these are basic examples, it can be changed via varibales as per requirement. | ||
#tfsec:ignore:aws-ec2-no-public-ingress-acl # Ingnored because these are basic examples, it can be changed via varibales as per requirement. | ||
module "subnets" { | ||
source = "clouddrove/subnet/aws" | ||
version = "2.0.0" | ||
name = "subnet" | ||
environment = local.environment | ||
label_order = local.label_order | ||
availability_zones = local.availability_zones | ||
vpc_id = module.vpc.vpc_id | ||
cidr_block = module.vpc.vpc_cidr_block | ||
type = "public" | ||
igw_id = module.vpc.igw_id | ||
ipv6_cidr_block = module.vpc.ipv6_cidr_block | ||
} | ||
|
||
module "efs" { | ||
source = "./.." | ||
name = "efs" | ||
environment = "test" | ||
creation_token = "changeme" | ||
availability_zones = local.availability_zones | ||
vpc_id = module.vpc.vpc_id | ||
subnets = module.subnets.public_subnet_id | ||
security_groups = [module.vpc.vpc_default_security_group_id] | ||
efs_backup_policy_enabled = true | ||
allow_cidr = [module.vpc.vpc_cidr_block] #vpc_cidr | ||
replication_enabled = true | ||
replication_configuration_destination = { | ||
region = "eu-west-2" | ||
availability_zone_name = ["eu-west-2a", "eu-west-2b"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.