terraform-module / terraform-aws-ecs-instance-profile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECS instance profile

For an EC2 instance to connect itself to ECS it needs rights to do so.


Maintenance GitHub forks


Documentation

Usage example

IMPORTANT: The master branch is used in source just as an example. In your code, do not pin to master because there may be breaking changes between releases. Instead pin to the release tag (e.g. ?ref=tags/x.y.z) of one of our latest releases.

See examples directory for working examples to reference:

module "ecs-instance-profile" {
  source  = "terraform-module/ecs-instance-profile/aws"
  version = "~> 1"
}

Examples

See examples directory for working examples to reference

Assumptions

Available features

Requirements

Name Version
terraform >= 1
aws >= 4

Providers

Name Version
aws >= 4

Modules

No modules.

Resources

Name Type
aws_iam_instance_profile.this resource
aws_iam_role.this resource
aws_iam_role_policy_attachment.amazon_ssm_managed_instance_core resource
aws_iam_role_policy_attachment.ecs_ec2_cloudwatch_role resource
aws_iam_role_policy_attachment.ecs_ec2_role resource

Inputs

Name Description Type Default Required
include_ssm Whether to include policies needed for AmazonSSM bool false no
name Name to be used on all the resources as identifier string n/a yes
tags A map of tags to add to instance profile role map(string) {} no

Outputs

Name Description
iam_instance_profile_arn ARN of the IAM instance profile
iam_instance_profile_id ID of the IAM instance profile
iam_role_id ID of the IAM role

πŸ“ Guidelines

  • πŸ“ Use a succinct title and description.
  • πŸ› Bugs & feature requests can be be opened
  • πŸ“Ά Support questions are better asked on Stack Overflow
  • 😊 Be nice, civil and polite (as always).

License

Copyright 2019 Ivan Katliarhcuk

MIT Licensed. See LICENSE for full details.

How to Contribute

Submit a pull request

Authors

Currently maintained by Ivan Katliarchuk and these awesome contributors.

ForTheBadge uses-git

Terraform Registry

Resources

Clone Me

Create a repository using this template β†’

About

License:MIT License


Languages

Language:HCL 83.2%Language:Makefile 16.8%