role-tags

command
v0.0.0-...-36ac650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 10 Imported by: 0

README

tags

Adds the ability to set tags for IAM::Role through CloudFormation.

Resource

The name for this custom resource is Custom::IAMRoleTags and supports all the parameters that you can make through the GUI and cli.

Structure

This is the YAML structure you use when using this Custom Resource.

Type: "Custom::IAMRoleTags"
Properties:
  Properties

See below for the supported Properties.

Properties

These are the supported properties for the resource.

Property name Type Description Required
RoleName String Role name Yes
Tags Tags List of tags Yes
ServiceToken String The ARN of the lambda function for this Custom Resource Yes
Tag properties
Property name Type Description Required
Key String Name of tag Yes
Value String Value of tag Yes

Example

AWSTemplateFormatVersion: "2010-09-09"
Description: "Cognito UserPool"

Parameters:
  Environment:
    Description: "What environment we deploy to"
    Type: "String"
    Default: "dev"

Resources:
  IamRoleTags:
    Type: "Custom::ECSTags"
    Properties:
      ServiceToken: !Sub "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:cognito-iam-tags-${AWS::Region}-${Environment}"
      RoleName: "somerole-name"
      Tags:
       - Key: "Location"
         Value: "stockholm"
       - Key: "Environment"
         Value: "prod"
       - Key: "Owner"
         Value: "cloudops"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL