Skip to content

Commit

Permalink
#34 removed outputs and stored them in ssm parameter store
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed May 2, 2024
1 parent d03b8cf commit 103ac5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
15 changes: 0 additions & 15 deletions infra/output.tf

This file was deleted.

12 changes: 12 additions & 0 deletions infra/ssm_parameter.tf
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

View workflow job for this annotation

GitHub Actions / scan

CKV_AWS_337: "Ensure SSM parameters are using KMS CMK"

Check failure on line 2 in infra/ssm_parameter.tf

View workflow job for this annotation

GitHub Actions / scan

CKV2_AWS_34: "AWS SSM Parameter should be Encrypted"

Check failure on line 2 in infra/ssm_parameter.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_AWS_337: "Ensure SSM parameters are using KMS CMK"

Check failure on line 2 in infra/ssm_parameter.tf

View workflow job for this annotation

GitHub Actions / scan

CKV2_AWS_34: "AWS SSM Parameter should be Encrypted"
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

0 comments on commit 103ac5a

Please sign in to comment.