Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Creates an AWS Imagebuilder component to install Ansible

License

NotificationsYou must be signed in to change notification settings

rhythmictech/terraform-aws-imagebuilder-component-ansible-setup

Repository files navigation

Template repository for terraform modules. Good for any cloud and any provider.

tflinttfsecyamllintmisspellpre-commit-checkfollow on Twitter

Terraform module that creates an EC2 Image Builder component which installs Ansible on Amazon Linux 2

Example

data"aws_caller_identity""current" {}locals {account_id=data.aws_caller_identity.current.account_idtags=module.tags.tags_no_name}module"tags" {source="rhythmictech/tags"version="~> 1.1.0"names=["smiller","imagebuilder-test"  ]tags=merge({"Env"="test""Namespace"="smiller""notes"="Testing only - Can be safely deleted""Owner"= var.owner  }, var.additional_tags)}module"component_ansible_setup" {source="rhythmictech/imagebuilder-component-ansible-setup/aws"version="~> 1.0.0-rc1"component_version="1.0.0"description="Testing ansible setup"name="testing-setup-component"tags=local.tags}module"test_recipe" {source="rhythmictech/imagebuilder-recipe/aws"version="~> 0.2.0"description="Testing recipe"name="test-recipe"parent_image="arn:aws:imagebuilder:us-east-1:aws:image/amazon-linux-2-x86/x.x.x"recipe_version="1.0.0"tags=local.tagsupdate=truecomponent_arns=[module.component_ansible_setup.component_arn,"arn:aws:imagebuilder:us-east-1:aws:component/simple-boot-test-linux/1.0.0/1","arn:aws:imagebuilder:us-east-1:aws:component/reboot-test-linux/1.0.0/1"  ]}module"test_pipeline" {source="rhythmictech/imagebuilder-pipeline/aws"version="~> 0.3.0"description="Testing pipeline"name="test-pipeline"tags=local.tagsrecipe_arn=module.test_recipe.recipe_arnpublic=false}

About

This module serves as an EC2 Image Builder component to install Ansible on an Amazon Linux 2 image.

Requirements

NameVersion
terraform>= 0.14
aws>= 4.22.0

Providers

NameVersion
aws4.53.0

Modules

No modules.

Resources

NameType
aws_imagebuilder_component.thisresource
aws_secretsmanager_secret.ssh_keydata source

Inputs

NameDescriptionTypeDefaultRequired
additional_packagesSpace separated list of additional yum packages that may be needed for your ansible workflowstring""no
additional_pip_packagesSpace separated list of additional pip packages that may be needed for your ansible workflowstring""no
ansible_use_venvWhether or not ansible should be run in a virtual environmentbooltrueno
ansible_venv_pathPath at which to create the ansible virtual environmentstring"/var/tmp/ansible_venv/"no
change_descriptiondescription of changes since last versionstringnullno
component_versionVersion of the componentstringn/ayes
data_uriUse this to override the component document with one at a particualar URL endpointstringnullno
descriptiondescription of componentstringnullno
kms_key_idKMS key to use for encryptionstringnullno
namename to use for componentstringn/ayes
platformplatform of component (Linux or Windows)string"Linux"no
ssh_key_secret_arnARN of a secretsmanager secret containing an SSH key (use arn OR name, not both)stringnullno
ssh_key_secret_nameName of a secretsmanager secret containing an SSH key (use arn OR name, not both)stringnullno
supported_os_versionsA set of operating system versions supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation.set(string)nullno
tagsmap of tags to use for CFN stack and componentmap(string){}no

Outputs

NameDescription
component_arnARN of the EC2 Image Builder Component

The Giants underneath this module

  • pre-commit.com/
  • terraform.io/
  • github.com/tfutils/tfenv
  • github.com/segmentio/terraform-docs

About

Creates an AWS Imagebuilder component to install Ansible

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp