I’m trying to use cloudformation template in terraform variable.
code was perfectly working fine before I added VPC part in cloudformation after it stared throwing error like →
Rollback requested by user." "MediaLive must be able to obtain information about the allocation IDs. The trusted entity that you have associated with this channel needs to include the describe-addresses action.
This was my cloud formation template
AWSTemplateFormatVersion: “2010-09-09”
Parameters:
Publicaddressallocationids:
Type: String
Securitygroupids:
Type: String
Subnetids:
Type: String
…
otherpart of code
…
Vpc:
PublicAddressAllocationIds:
- !Ref Publicaddressallocationids
SecurityGroupIds:
- !Ref Securitygroupids
SubnetIds:
- !Ref Subnetids
& in terraform main.tf I passed variables
resource “aws_cloudformation_stack” “medialivechannel” {
name = var.medialive-stack_name
parameters = {
Publicaddressallocationids = var.public-cidr
Subnetids = var.private-subnets-cidr[0]
Securitygroupids = var.apes-sg-name