I wrote the config file for each separately like variable.tf , output.tf , Inside main .tf i have mentiond keyname and user data
I also cross verified with below commands and showing below output
iac-server $ terraform show | grep ami
ami = “ami-06178cf087598769c”
iac-server $ terraform state show aws_eip.citadel_eip
aws_eip.citadel_eip:
resource “aws_eip” “citadel_eip” {
allocation_id = “eipalloc-d63dff00”
association_id = “eipassoc-9554f87f”
domain = “vpc”
id = “eipalloc-d63dff00”
instance = “i-8936e2536821affba”
network_interface = “eni-b32bee5a”
private_dns = “ip-10-230-96-199.eu-west-2.compute.internal”
private_ip = “10.230.96.199”
public_dns = “ec2-127-133-175-227.eu-west-2.compute.amazonaws.com”
public_ip = “127.133.175.227”
tags_all = {}
vpc = true
}
But while trying to check , it is showing as task not completed
Can you please help me where i am doing mistake?