/infrastructure-exercises

Infrastructure as Code and provisioning examples

Primary LanguageHCLApache License 2.0Apache-2.0

Infrastructure examples

Examples of Infrastructure as Code and provisioning using terraform and ansible.

Requirements

  • Python 3+
  • Terraform 0.12+
  • Pipenv

Preconfiguration

  • Configure your AWS client (with your own credentials)
    • The credentials must be able to create resources and access to SSM parameter store
  • If you already have keys and vault, change the Ansible config or override them via command line, check Ansible Docs for further information
  • (Optional) If you're ssh key and vault values are (or are going to be) stored in SSM. Both must be ciphered. IAM credentials must have SSM access (GetParameters)
  • All the examples must be executed inside the pipenv context

Examples: