Hi,
I am trying to use an ansible variable in my AWS cloudformation template, see below red where I am trying to use the variable from Ansible.
Parameters:
Environment:
Description: ‘Environment definition.’
Type: ‘String’
Default: ‘Dev’
Resources:
VPC:
Type: ‘AWS::EC2::VPC’
Properties:
CidrBlock:
“{{ ansible variable here }}”
EnableDnsSupport: true
EnableDnsHostnames: true
InstanceTenancy: ‘default’
Tags:
- Key: ‘Environment’
Value:
Ref: ‘Environment’
Does anyone know how to pass this on to Ansible?
Thank you!