aristanetworks / aristanetworks/cloudformation
Templates missing parameters
- Dominant language
- No language data
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I attempted to use your spoke template to create a cloudformation stack with ansible, and got the following error.
`The error was: botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the CreateStack operation: Parameters: [SubnetId, VpcId, ImageId, InstanceType] do not exist in the template`
The task I ran includes these parameters, so I don't if this is an issue with the cloudformation module, or your template.
```
- name: Create a cloudformation stack
amazon.aws.cloudformation:
stack_name: ansible-cloudformation
state: present
region: "{{ region }}"
aws_access_key: "{{ aws_access_key }}"
disable_rollback: true
template: "./files/spokevpc.json"
template_parameters:
KeyName: "{{ key_name }}"
InstanceType: "{{ instance_type }}"
ImageId: "{{ image_id }}"
VpcId: "{{ vpc_id }}"
SubnetId: "{{ vpc_subnet_id }}"
tags: Stack: ansible-cloudformation
register: cloudformation
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the parameters in ./files/spokevpc.json with the template_parameters passed to the amazon.aws.cloudformation task. Check whether the reported rejection comes from the template or the Ansible module, then verify the corrected parameter set with the same stack-creation task.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, aws
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100