-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed kms key policy and updated example folder
- Loading branch information
Showing
9 changed files
with
153 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
##----------------------------------------------------------------------------- | ||
## Provider block added, Use the Amazon Web Services (AWS) provider to interact with the many resources supported by AWS. | ||
##----------------------------------------------------------------------------- | ||
provider "aws" { | ||
region = "us-west-1" | ||
} | ||
##----------------------------------------------------------------------------- | ||
## A VPC is a virtual network that closely resembles a traditional network that you'd operate in your own data center. | ||
##----------------------------------------------------------------------------- | ||
module "vpc" { | ||
source = "../.." | ||
name = "vpc" | ||
environment = "example" | ||
label_order = ["name", "environment"] | ||
cidr_block = "10.0.0.0/16" | ||
additional_cidr_block = ["172.3.0.0/16", "172.2.0.0/16"] | ||
dhcp_options_domain_name = "service.consul" | ||
dhcp_options_domain_name_servers = ["127.0.0.1", "10.10.0.2"] | ||
} |
File renamed without changes.
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,20 @@ | ||
##----------------------------------------------------------------------------- | ||
## Provider block added, Use the Amazon Web Services (AWS) provider to interact with the many resources supported by AWS. | ||
##----------------------------------------------------------------------------- | ||
provider "aws" { | ||
region = "us-west-1" | ||
} | ||
##----------------------------------------------------------------------------- | ||
## A VPC is a virtual network that closely resembles a traditional network that you'd operate in your own data center. | ||
##----------------------------------------------------------------------------- | ||
module "vpc" { | ||
source = "../.." | ||
name = "vpc" | ||
environment = "example" | ||
label_order = ["name", "environment"] | ||
cidr_block = "10.0.0.0/16" | ||
enable_flow_log = true # Flow logs will be stored in cloudwatch log group. Variables passed in default. | ||
additional_cidr_block = ["172.3.0.0/16", "172.2.0.0/16"] | ||
dhcp_options_domain_name = "service.consul" | ||
dhcp_options_domain_name_servers = ["127.0.0.1", "10.10.0.2"] | ||
} |
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,29 @@ | ||
output "id" { | ||
value = module.vpc.*.vpc_id | ||
description = "The ID of the VPC." | ||
} | ||
|
||
output "tags" { | ||
value = module.vpc.*.tags | ||
description = "A mapping of tags to assign to the resource." | ||
} | ||
|
||
output "vpc_cidr" { | ||
value = module.vpc.*.vpc_cidr_block | ||
description = "The primary IPv4 CIDR block" | ||
} | ||
|
||
output "vpc_ipv6_cidr_block" { | ||
value = module.vpc.*.ipv6_cidr_block | ||
description = "The primary IPv6 CIDR block" | ||
} | ||
|
||
output "vpc_ipv6_association_id" { | ||
value = module.vpc.*.vpc_ipv6_association_id | ||
description = "The association ID for the primary IPv6 CIDR block" | ||
} | ||
|
||
output "ipv6_cidr_block_network_border_group" { | ||
value = module.vpc.*.ipv6_cidr_block_network_border_group | ||
description = "The Network Border Group Zone name" | ||
} |
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
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,29 @@ | ||
output "id" { | ||
value = module.vpc.*.vpc_id | ||
description = "The ID of the VPC." | ||
} | ||
|
||
output "tags" { | ||
value = module.vpc.*.tags | ||
description = "A mapping of tags to assign to the resource." | ||
} | ||
|
||
output "vpc_cidr" { | ||
value = module.vpc.*.vpc_cidr_block | ||
description = "The primary IPv4 CIDR block" | ||
} | ||
|
||
output "vpc_ipv6_cidr_block" { | ||
value = module.vpc.*.ipv6_cidr_block | ||
description = "The primary IPv6 CIDR block" | ||
} | ||
|
||
output "vpc_ipv6_association_id" { | ||
value = module.vpc.*.vpc_ipv6_association_id | ||
description = "The association ID for the primary IPv6 CIDR block" | ||
} | ||
|
||
output "ipv6_cidr_block_network_border_group" { | ||
value = module.vpc.*.ipv6_cidr_block_network_border_group | ||
description = "The Network Border Group Zone name" | ||
} |
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