-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#34 removed outputs and stored them in ssm parameter store
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter | ||
resource "aws_ssm_parameter" "infra_output" { | ||
Check failure on line 2 in infra/ssm_parameter.tf
|
||
name = "/${var.name}/output" | ||
type = "String" | ||
value = jsonencode( { | ||
"subnet_ids": [for subnet in aws_subnet.public : subnet.id], | ||
"security_group_id": "${aws_security_group.custom_sg.id}", | ||
"aws_lb_target_group": "${aws_lb_target_group.target_group.arn}", | ||
"cluster_id": "${aws_ecs_cluster.app_cluster.id}", | ||
"cloud_watch_log_group_name": "${aws_cloudwatch_log_group.logs.name}" | ||
}) | ||
} | ||
Check failure Code scanning / checkov Ensure SSM parameters are using KMS CMK Error
Ensure SSM parameters are using KMS CMK
Check failure Code scanning / checkov AWS SSM Parameter should be Encrypted Error
AWS SSM Parameter should be Encrypted
|