0.2.2 • Published 4 years ago
@gdsgroup/aws-account v0.2.2
AWS Account
A module for provisioning AWS accounts within an organisation
Requirements
| Name | Version |
|---|---|
| Pulumi | >= 3.8.0, < 4.0.0 |
Providers
| Name | Version |
|---|---|
| aws | >= 3.51.0, < 4.0.0 |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | The alias of the AWS account. Also used as the common name for resources created as part of this module | string | n/a | yes |
| iamAccountId | The Id of the AWS account where user's IAM user accounts reside | string | n/a | yes |
| isGameliftAccount | Whether or not to initialise Amazon Gamelift IAM resources | boolean | false | no |
| orgAccountProvider | The provider to provision the organizations.Account resource with. See: Manage Org Accounts | Provider | n/a | yes |
| rootAccountEmail | The email address to associate with the root account | string | n/a | yes |
| ~tags~ | Tags to apply to th resources | map[key: string]: string | n/a | no |
Outputs
| Name | Description |
|---|---|
| accountId | The Id of the newly created member AWS account |
| accountRootEmail | The 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
4 years ago
0.1.20
4 years ago
0.1.21
4 years ago
0.1.22
4 years ago
0.1.23
4 years ago
0.1.24
4 years ago
0.1.25
4 years ago
0.1.26
4 years ago
0.2.1
4 years ago
0.1.16
4 years ago
0.1.17
4 years ago
0.1.18
4 years ago
0.1.19
4 years ago
0.2.2
4 years ago
0.1.15
4 years ago
0.1.13
4 years ago
0.1.14
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.2
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.5
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago