0.2.2 • Published 2 years ago

@gdsgroup/aws-account v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

AWS Account

A module for provisioning AWS accounts within an organisation

Requirements

NameVersion
Pulumi>= 3.8.0, < 4.0.0

Providers

NameVersion
aws>= 3.51.0, < 4.0.0

Inputs

NameDescriptionTypeDefaultRequired
nameThe alias of the AWS account. Also used as the common name for resources created as part of this modulestringn/ayes
iamAccountIdThe Id of the AWS account where user's IAM user accounts residestringn/ayes
isGameliftAccountWhether or not to initialise Amazon Gamelift IAM resourcesbooleanfalseno
orgAccountProviderThe provider to provision the organizations.Account resource with. See: Manage Org AccountsProvidern/ayes
rootAccountEmailThe email address to associate with the root accountstringn/ayes
~tags~Tags to apply to th resourcesmap[key: string]: stringn/ano

Outputs

NameDescription
accountIdThe Id of the newly created member AWS account
accountRootEmailThe email address of the root account

Module\Component Usage

Provider Configuration

Organisation member accounts have a special admin role named OrganizationAccountAccessRole. See: Member Account Admin

Once the organisation member account has been created, Pulumi should provision all other resources defined in this module by assuming OrganizationAccountAccessRole within the newly created member account.

import { Provider } from '@pulumi/aws';
import { AwsAccount } from '../account';

const accountProvider = new Provider('account-provider', {
  region: 'eu-west-2',
});

const testAccount = new AwsAccount('test', {
  name: 'test',
  iamAccountId: '012345678910',
  orgAccountProvider: accountProvider,
});

new AwsAccount('gameliftAccount', {
  name: 'gameliftAccount',
  iamAccountId: '012345678910',
  orgAccountProvider: accountProvider,
  isGameliftAccount: true,
});

// Outputs
export const testAccountId = testAccount.accountId;
export const testAccountRootEmail = testAccount.accountRootEmail;
0.1.27

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.2.1

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.2.2

2 years ago

0.1.15

2 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago