foundation-iam-passthrough.yaml
---

IAM Passthrough CloudFormation Template

This CloudFormation template simply takes some parameters and exports them so they are available for import. This is mainly for IAM resources so they can be available in other regions.

AWSTemplateFormatVersion: '2010-09-09' Description: 'UITS Account Foundation: Passthrough Exports'

Parameters

These are the input parameters for this template. All of these parameters must be supplied for this template to be deployed.

Parameters:

Pass in the ARN of the Cloud Formation Admin Deployer Role from foundation.

CloudFormationAdminDeployerRoleARN: Description: Full ARN of the CloudFormation Admin Deployer Role Type: String

Pass in the ARN of the OpsWorks Service from foundation.

OpsWorksServiceRoleARN: Description: Full ARN of the OpsWorks Service Role Type: String

Resources

These are all of the resources deployed by this stack.

Resources:

We have to have a resource in a template, so here's one that does nothing.

NullResource: Type: AWS::CloudFormation::WaitConditionHandle

Outputs

Outputs: CloudFormationAdminDeployerRole: Value: !Ref CloudFormationAdminDeployerRoleARN Export: Name: !Sub "fdn-iam-cloudformation-deployer-role-arn" OpsWorksServiceRoleARN: Value: !Ref OpsWorksServiceRoleARN Export: Name: !Sub "fdn-iam-opsworks-service-role-arn"