Open
Conversation
Staging: database✅ Terraform Init: Plan: 4 to add, 1 to change, 0 to destroyShow summary
Show planResource actions are indicated with the following symbols:
+ create
~ update in-place
Terraform will perform the following actions:
# aws_docdb_cluster.ai-answers-docdb-v8-cluster will be created
+ resource "aws_docdb_cluster" "ai-answers-docdb-v8-cluster" {
+ apply_immediately = true
+ arn = (known after apply)
+ availability_zones = (known after apply)
+ backup_retention_period = 1
+ cluster_identifier = "ai-answers-docdb-v8-cluster"
+ cluster_identifier_prefix = (known after apply)
+ cluster_members = (known after apply)
+ cluster_resource_id = (known after apply)
+ db_cluster_parameter_group_name = "ai-answers-docdb-v8-cluster-parameter-group"
+ db_subnet_group_name = "ai-answers-example-docdb-subnet-group"
+ endpoint = (known after apply)
+ engine = "docdb"
+ engine_version = "8.0.0"
+ hosted_zone_id = (known after apply)
+ id = (known after apply)
+ kms_key_id = (known after apply)
+ master_password = (sensitive value)
+ master_username = (sensitive value)
+ port = 27017
+ preferred_backup_window = (known after apply)
+ preferred_maintenance_window = (known after apply)
+ reader_endpoint = (known after apply)
+ skip_final_snapshot = true
+ storage_encrypted = true
+ tags = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ tags_all = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ vpc_security_group_ids = [
+ "sg-04966047bf236b850",
]
}
# aws_docdb_cluster_instance.ai-answers-docdb-v8-instance[0] will be created
+ resource "aws_docdb_cluster_instance" "ai-answers-docdb-v8-instance" {
+ apply_immediately = true
+ arn = (known after apply)
+ auto_minor_version_upgrade = true
+ availability_zone = (known after apply)
+ ca_cert_identifier = (known after apply)
+ cluster_identifier = (known after apply)
+ db_subnet_group_name = (known after apply)
+ dbi_resource_id = (known after apply)
+ endpoint = (known after apply)
+ engine = "docdb"
+ engine_version = (known after apply)
+ id = (known after apply)
+ identifier = "ai-answers-docdb-v8-instance"
+ identifier_prefix = (known after apply)
+ instance_class = "db.t3.medium"
+ kms_key_id = (known after apply)
+ performance_insights_kms_key_id = (known after apply)
+ port = (known after apply)
+ preferred_backup_window = (known after apply)
+ preferred_maintenance_window = (known after apply)
+ promotion_tier = 0
+ publicly_accessible = (known after apply)
+ storage_encrypted = (known after apply)
+ tags = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ tags_all = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ writer = (known after apply)
}
# aws_docdb_cluster_parameter_group.ai-answers-docdb-v8-cluster-parameter-group will be created
+ resource "aws_docdb_cluster_parameter_group" "ai-answers-docdb-v8-cluster-parameter-group" {
+ arn = (known after apply)
+ description = "Parameter group for ai-answers staging DocumentDB v8"
+ family = "docdb8.0"
+ id = (known after apply)
+ name = "ai-answers-docdb-v8-cluster-parameter-group"
+ name_prefix = (known after apply)
+ tags = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ tags_all = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ parameter {
+ apply_method = "pending-reboot"
+ name = "tls"
+ value = "enabled"
}
}
# aws_security_group.ai-answers-docdb-sg will be updated in-place
~ resource "aws_security_group" "ai-answers-docdb-sg" {
id = "sg-04966047bf236b850"
~ ingress = [
- {
- cidr_blocks = [
- "10.0.0.0/16",
]
- from_port = 27017
- ipv6_cidr_blocks = []
- prefix_list_ids = []
- protocol = "tcp"
- security_groups = []
- self = false
- to_port = 27017
# (1 unchanged attribute hidden)
},
- {
- cidr_blocks = []
- description = "Allow DocumentDB cluster to receive requests from ECS"
- from_port = 27017
- ipv6_cidr_blocks = []
- prefix_list_ids = []
- protocol = "tcp"
- security_groups = [
- "sg-085c606383f33733e",
]
- self = false
- to_port = 27017
},
- {
- cidr_blocks = []
- description = "Security group rule for AI Answers DocumentDB ingress"
- from_port = 27017
- ipv6_cidr_blocks = []
- prefix_list_ids = []
- protocol = "tcp"
- security_groups = [
- "sg-02aa37b786b2751de",
]
- self = false
- to_port = 27017
},
+ {
+ cidr_blocks = [
+ "10.0.0.0/16",
]
+ from_port = 27017
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = false
+ to_port = 27017
},
]
name = "ai-answers-example-docdb-sg"
tags = {
"CostCentre" = "ai-answers-staging"
"Terraform" = "true"
}
# (8 unchanged attributes hidden)
}
# aws_ssm_parameter.docdb_uri_v8 will be created
+ resource "aws_ssm_parameter" "docdb_uri_v8" {
+ arn = (known after apply)
+ data_type = (known after apply)
+ id = (known after apply)
+ insecure_value = (known after apply)
+ key_id = (known after apply)
+ name = "docdb_uri_v8"
+ tags_all = {
+ "CostCentre" = "ai-answers-staging"
+ "Terraform" = "true"
}
+ tier = (known after apply)
+ type = "SecureString"
+ value = (sensitive value)
+ version = (known after apply)
}
Plan: 4 to add, 1 to change, 0 to destroy.
Changes to Outputs:
+ aws_docdb_v8_cluster_arn = (known after apply)
+ aws_docdb_v8_cluster_id = (known after apply)
+ docdb_uri_v8_arn = (known after apply)
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_ssm_parameter.docdb_uri"]
WARN - plan.json - main - Missing Common Tags: ["aws_ssm_parameter.docdb_uri_v8"]
21 tests, 19 passed, 2 warnings, 0 failures, 0 exceptions
|
🧪 AI Answers Review Environmenthttps://mrb7gbedaoige66kyltd6smfba0rwrvs.lambda-url.ca-central-1.on.aws/ |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Start migration to docdb 8, need to do side by side as per guidelines.