This project tries to cover some AWS management through AWSCloudformation using Ansible as automation tool.
Clone this repo:
# Move to your working path
$ git clone https://github.com/maurogonzalez/cloudformation.git
$ cd cloudformation
The general playbook is playbook.yml. It receives the role variable
to set which role is going to be played. Each role needs an environment
variable which is already set in inventory/dev.yml but it can be
overridden in the command (I suggest to use inventory as it is easier to
set variables/values corresponding to a given scope).
The command to run each implemented role is as follows:
$ ansible-playbook -i dev.yml -e "role=$ROLE" playbook.yml
For become root access use ask-become-pass like:
$ ansible-playbook --ask-become-pass -i dev.yml -e "role=host_dependencies" playbook.yml
Manages an EKS Cluster.
Requires:
iamrole playednetworkrole played
Creates:
- AWS::EKS::Cluster
- AWS::EKS::NodeGroup
Manages IAM resources.
Creates roles for:
- AWS::EKS::Cluster
- AWS::EKS::NodeGroup
Manages VPC resources such.
Creates:
- AWS::EC2::VPC with 2 AZs.
- 2 Public AWS::EC2::Subnet
- 2 Private AWS::EC2::Subnet
- 2 AWS::EC2::SecurityGroup
If you have any questions regarding to this project contact:
Mauro González jmajma8@gmail.com