From e401e538d02373644c3e34ead9a211fdacd9d919 Mon Sep 17 00:00:00 2001 From: farhadh91 <37770395+farhadh91@users.noreply.github.com> Date: Fri, 17 Feb 2023 05:21:12 +0330 Subject: [PATCH 1/2] Removed extra spaces I got an error with the resource name. A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes. --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 0f75091..88c1de2 100644 --- a/main.tf +++ b/main.tf @@ -39,7 +39,7 @@ provider "aws" { ######### DynamoDB ######### -resource "aws_dynamodb_table" " devopshobbies-dev-devops-consumer-events" { +resource "aws_dynamodb_table" "devopshobbies-dev-devops-consumer-events" { name = " devopshobbies-dev-devops-consumer-events" read_capacity = "20" write_capacity = "20" @@ -54,13 +54,13 @@ resource "aws_dynamodb_table" " devopshobbies-dev-devops-consumer-events" { ######### SNS Topic ######### resource "aws_sns_topic" "sns_topic" { - name = " devopshobbies-devops-producer-events" + name = "devopshobbies-devops-producer-events" } ######### SQS Queue ######### resource "aws_sqs_queue" "queue" { - name = " devopshobbies-devops-consumer-events" + name = "devopshobbies-devops-consumer-events" } ######### SNS Subscription ######### From 63d5b7d1daa91a2d56b9159dc6b4a960ae44f95c Mon Sep 17 00:00:00 2001 From: farhadh91 <37770395+farhadh91@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:30:06 +0330 Subject: [PATCH 2/2] Removed more spaces --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 88c1de2..2c30f30 100644 --- a/main.tf +++ b/main.tf @@ -40,7 +40,7 @@ provider "aws" { ######### DynamoDB ######### resource "aws_dynamodb_table" "devopshobbies-dev-devops-consumer-events" { - name = " devopshobbies-dev-devops-consumer-events" + name = "devopshobbies-dev-devops-consumer-events" read_capacity = "20" write_capacity = "20" hash_key = "Id"