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.
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.