плейбук, указал access_key и secret_key, но выдает "AuthFailure: AWS was not able to validate the provided access credentials"?
Вот пример плейбука:
---
- hosts: localhost
gather_facts: false
vars:
aws_access_key: "XXXXXXXXXXXX"
aws_secret_key: "XXXXXXXXXXXXXXXXXXXXXXXXX"
key_name: "keypair"
instance_type: "t2.micro"
image: "ami-xxxxxxxxxx"
wait: yes
vpc_subnet_id: vpc-xxxxxxxxxxxx
assign_public_ip: no
region: "eu-central-1"
ec2_url: "https://ec2.amazonaws.com"
tasks:
- name: Create instance
ec2: aws_access_key={{ aws_access_key }}
aws_secret_key={{ aws_secret_key }}
count={{ count | default('1') }}
assign_public_ip={{ assign_public_ip }}
ec2_url={{ ec2_url }}
image={{ image }}
key_name={{ key_name }}
region={{ region }}
tenancy={{ tenancy | default('default') }}
instance_type={{ instance_type }}
instance_tags='{ "Name":"test" }'
wait=true
зачем вы указали ec2_url?
Обсуждают сегодня