Skip to content

Commit

Permalink
updated resource name and added default value
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Jun 11, 2024
1 parent dc91a0c commit 77437bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iam_role.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role
resource "aws_iam_role" "lambda_role" {
name = "${var.name}_lambda_role"
name = "${var.name}-lambda-role"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
Expand All @@ -18,7 +18,7 @@ resource "aws_iam_role" "lambda_role" {

#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy
resource "aws_iam_policy" "lambda_policy" {
name = "${var.name}_lambda_policy"
name = "${var.name}-lambda-policy"
path = "/"
description = "AWS IAM policy for the lambda role."
policy = jsonencode({
Expand Down
2 changes: 1 addition & 1 deletion ssm_parameter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ resource "aws_ssm_parameter" "parameter" {
name = "/${var.name}"
type = "SecureString"
key_id = aws_kms_key.encryption_rest.id
value = ""
value = "1234567890"
}

0 comments on commit 77437bf

Please sign in to comment.