QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 131 forks source link

Getting issue in terraform #1002

Open nehaanshul opened 3 years ago

nehaanshul commented 3 years ago

Error: Missing required argument

on main.tf line 31, in resource "aws_ram_resource_share" "TGW": 31: resource "aws_ram_resource_share" "TGW" {

The argument "name" is required, but no definition was found.

The peice of code is: resource "aws_ram_resource_share" "TGW" { allow_external_principals = true } resource "aws_ram_principal_association" "test" { principal = "var.account.id" resource_share_arn = aws_ram_resource_share.TGW.arn }

This code is for the transit gateway if I add property i.e name= "example" then the plan does not give any output and no error comes just a blank screen in terraform.