aws-data-landing-zone 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/README.md +0 -1
- package/docs/astro.config.ts +63 -50
- package/docs/public/favicon.png +0 -0
- package/docs/src/content/docs/components/account-management/accounts.mdx +1 -4
- package/docs/src/content/docs/components/account-management/budgets.mdx +1 -4
- package/docs/src/content/docs/components/account-management/regions.mdx +0 -2
- package/docs/src/content/docs/components/account-management/tagging.mdx +1 -4
- package/docs/src/content/docs/components/data-services/lake-formation.mdx +423 -0
- package/docs/src/content/docs/components/identity/iam-identity-center.mdx +148 -0
- package/docs/src/content/docs/components/networking/bastion-hosts.mdx +189 -0
- package/docs/src/content/docs/components/networking/imgs/nat_1.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/nat_2.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_1.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_2.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_3.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_4.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_5.png +0 -0
- package/docs/src/content/docs/components/networking/nats.mdx +462 -0
- package/docs/src/content/docs/components/networking/vpc-peering.mdx +313 -0
- package/docs/src/content/docs/components/networking/vpcs.mdx +284 -0
- package/docs/src/content/docs/components/security/control-tower-controls.mdx +66 -0
- package/docs/src/content/docs/components/security/iam-permission-boundary.mdx +70 -0
- package/docs/src/content/docs/components/security/security-hub.mdx +123 -0
- package/docs/src/content/docs/components/security/service-deny-list.mdx +59 -0
- package/docs/src/content/docs/getting-started.mdx +2 -2
- package/docs/src/content/docs/index.mdx +2 -2
- package/docs/src/content/docs/introduction.mdx +135 -55
- package/docs/src/content/docs/reference/defaults.mdx +10 -2
- package/docs/src/content/docs/reference/extending-and-escape-hatches.mdx +50 -0
- package/docs/src/content/docs/reference/imgs/grants_diagram.png +0 -0
- package/docs/src/content/docs/reference/imgs/tag_inheritance.png +0 -0
- package/docs/src/content/docs/reference/integration/cdk-client.mdx +122 -0
- package/docs/src/content/docs/reference/integration/exported-ssm-parameters.mdx +28 -0
- package/docs/src/content/docs/reference/lake-formation-tbac-recommended-strategy.mdx +286 -0
- package/docs/src/content/docs/reference/network-address.mdx +54 -0
- package/docs/src/content/docs/{components/account-management/sop-account-setup.mdx → sop/account-setup.mdx} +2 -2
- package/docs/src/content/docs/{components/account-management/sop-add-account.mdx → sop/add-account.mdx} +3 -6
- package/docs/src/content/docs/sop/iam-identity-center-setup-external.mdx +46 -0
- package/docs/src/content/docs/sop/iam-identity-center-setup-internal.mdx +23 -0
- package/docs/src/content/docs/sop/iam-identity-center.mdx +43 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_enable_iam_identity_center.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_change.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_1.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_2.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_idp_config.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_select.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_1.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_2.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_internal_select_identity_source.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_settings_configure.png +0 -0
- package/docs/src/content/docs/sop/imgs/select_settings.png +0 -0
- package/docs/src/content/docs/{components/account-management/sop-initial-control-tower-setup.mdx → sop/initial-control-tower-setup.mdx} +7 -7
- package/docs-old/sop/Setting Up IAM Identity Center External/README.md +1 -1
- package/docs-old/sop/Setting Up IAM Identity Center Internal/README.md +1 -1
- package/lib/constructs/account-chatbots/index.js +1 -1
- package/lib/constructs/dlz-budget/index.js +1 -1
- package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
- package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
- package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
- package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
- package/lib/constructs/dlz-stack/index.js +1 -1
- package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
- package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
- package/lib/constructs/dlz-vpc/network-address.js +1 -1
- package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
- package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
- package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
- package/lib/constructs/organization-policies/service-control-policy.js +1 -1
- package/lib/constructs/organization-policies/tag-policy.js +1 -1
- package/lib/data-landing-zone-client.js +1 -1
- package/lib/data-landing-zone.js +1 -1
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.js +1 -1
- package/lib/scripts/index.js +1 -1
- package/lib/stacks/organization/management-stack.js +1 -1
- package/lib/stacks/organization/security/audit/global-stack.js +1 -1
- package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
- package/lib/stacks/organization/security/log/global-stack.js +1 -1
- package/lib/stacks/organization/security/log/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
- package/package.json +1 -1
- package/docs/public/favicon.svg +0 -1
- package/docs/src/assets/houston.webp +0 -0
- package/docs/src/content/docs/components/account-management/service-deny-list.mdx +0 -60
- package/docs/src/content/docs/components/identity/introduction.mdx +0 -4
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/account_factory_settings.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_1.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_2.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_3.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_4.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_5.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_organisation_ids_final.png +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Integration - CDK Client
|
|
3
|
+
description: Integration - CDK Client
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
The Data Landing Zone exports SSM Parameters, enabling other repositories or IaC projects owned by Workload teams to
|
|
8
|
+
reference resources created by the DLZ.
|
|
9
|
+
|
|
10
|
+
The CDK Client is a lightweight, type-safe wrapper that ensures SSM Parameter Keys are constructed correctly based on
|
|
11
|
+
the provided function arguments.
|
|
12
|
+
|
|
13
|
+
The following example is from one of the Data Engineering team's repositories. It demonstrates how the VPC ID can be
|
|
14
|
+
referenced using the CDK Client. These function arguments corresponds with the resource names specified in the
|
|
15
|
+
configuration passed to the Data Landing Zone.
|
|
16
|
+
|
|
17
|
+
Given the following DLZ configuration:
|
|
18
|
+
<DualCode>
|
|
19
|
+
<Fragment slot="ts">
|
|
20
|
+
```ts {11} {14-15}
|
|
21
|
+
import {App} from 'aws-cdk-lib';
|
|
22
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
23
|
+
|
|
24
|
+
const app = new App();
|
|
25
|
+
const dlz = new DataLandingZone(app, {
|
|
26
|
+
...
|
|
27
|
+
organization: {
|
|
28
|
+
...
|
|
29
|
+
workloads: {
|
|
30
|
+
accounts: [{
|
|
31
|
+
name: 'development',
|
|
32
|
+
vpcs: [
|
|
33
|
+
{
|
|
34
|
+
name: 'default',
|
|
35
|
+
region: Region.EU_WEST_1,
|
|
36
|
+
cidr: '10.1.0.0/16',
|
|
37
|
+
...
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
...
|
|
41
|
+
````
|
|
42
|
+
</Fragment>
|
|
43
|
+
<Fragment slot="python">
|
|
44
|
+
```python {13} {15-17}
|
|
45
|
+
import aws_cdk as cdk
|
|
46
|
+
import aws_data_landing_zone as dlz
|
|
47
|
+
|
|
48
|
+
app = cdk.App()
|
|
49
|
+
dlz.DataLandingZone(app,
|
|
50
|
+
...
|
|
51
|
+
organization=dlz.DLzOrganization(
|
|
52
|
+
ous=dlz.OrgOus(
|
|
53
|
+
...
|
|
54
|
+
workloads=dlz.OrgOuWorkloads(
|
|
55
|
+
accounts=[
|
|
56
|
+
dlz.DLzAccount(
|
|
57
|
+
name='development',
|
|
58
|
+
vpcs: [
|
|
59
|
+
{
|
|
60
|
+
"name": "default",
|
|
61
|
+
"region": Region.EU_WEST_1,
|
|
62
|
+
"cidr": "10.1.0.0/16",
|
|
63
|
+
...
|
|
64
|
+
},
|
|
65
|
+
]
|
|
66
|
+
...
|
|
67
|
+
````
|
|
68
|
+
</Fragment>
|
|
69
|
+
</DualCode>
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
To reference the VPC ID of the VPC in the `development` account's `eu-west-1` region, named `default`, from the
|
|
73
|
+
Data Engineering team's repository stack:
|
|
74
|
+
<DualCode>
|
|
75
|
+
<Fragment slot="ts">
|
|
76
|
+
```ts
|
|
77
|
+
import * as cdk from 'aws-cdk-lib';
|
|
78
|
+
import { Construct } from 'constructs';
|
|
79
|
+
import {DataLandingZoneClient} from "aws-data-landing-zone";
|
|
80
|
+
|
|
81
|
+
export class DataEngineeringStack extends cdk.Stack {
|
|
82
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
83
|
+
super(scope, id, props);
|
|
84
|
+
|
|
85
|
+
const vpcId = DataLandingZoneClient.vpcId(this, "vpc-id", {
|
|
86
|
+
accountName: "development",
|
|
87
|
+
region: this.region, // "eu-west-1"
|
|
88
|
+
vpcName: "default",
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
...
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
</Fragment>
|
|
97
|
+
<Fragment slot="python">
|
|
98
|
+
```python
|
|
99
|
+
from aws_cdk import ( Stack )
|
|
100
|
+
from constructs import Construct
|
|
101
|
+
from aws_data_landing_zone import DataLandingZoneClient
|
|
102
|
+
|
|
103
|
+
class DataEngineeringStack(Stack):
|
|
104
|
+
def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
|
|
105
|
+
super().__init__(scope, construct_id, **kwargs)
|
|
106
|
+
|
|
107
|
+
vpc_id = DataLandingZoneClient.vpc_id(self, "vpc-id", "default", "development", self.region)
|
|
108
|
+
|
|
109
|
+
...
|
|
110
|
+
```
|
|
111
|
+
</Fragment>
|
|
112
|
+
</DualCode>
|
|
113
|
+
|
|
114
|
+
## List of available functions
|
|
115
|
+
|
|
116
|
+
- `DataLandingZoneClient.vpcId`: Returns the VPC ID given the account name, region, and VPC name.
|
|
117
|
+
- `DataLandingZoneClient.routeTableId`: Returns the Route Table ID given the account name, region, VPC name and Route Table name.
|
|
118
|
+
- `DataLandingZoneClient.subnetId`: Returns the Route Table ID given the account name, region, VPC name, Route Table name and Subnet name.
|
|
119
|
+
- `DataLandingZoneClient.bastionSecurityGroupId`: Returns the Bastion Security Group ID given the Bastion name.
|
|
120
|
+
|
|
121
|
+
## API References
|
|
122
|
+
- [DataLandingZoneClient](/reference/api#datalandingzoneclient)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Integration - Exported SSM Parameters
|
|
3
|
+
description: Integration - Exported SSM Parameters
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The Data Landing Zone exports SSM Parameters that allow other repositories or IaC projects owned by Workload teams to
|
|
7
|
+
reference resources created by the Data Landing Zone. For example, the Data Engineering team can use these parameters
|
|
8
|
+
to reference the VPC ID and Subnet IDs when defining an RDS cluster in a private subnet.
|
|
9
|
+
|
|
10
|
+
SSM Parameters can be utilized by any Infrastructure-as-Code (IaC) tool, including Terraform, CDK, CloudFormation, or
|
|
11
|
+
even custom scripts. This flexibility ensures that choosing CDK for the Data Landing Zone does not limit the
|
|
12
|
+
organization's ability to adopt other IaC tools across different projects.
|
|
13
|
+
|
|
14
|
+
:::tip
|
|
15
|
+
**CDK User?** Avoid directly referencing or consuming the SSM Parameters. Instead, use the convenient
|
|
16
|
+
[CDK Client](cdk-client), which provides a thin, type-safe wrapper to fetch these SSM Parameters.
|
|
17
|
+
:::
|
|
18
|
+
|
|
19
|
+
### List of Exported SSM Parameters
|
|
20
|
+
|
|
21
|
+
- [/dlz/networking-entity/vpc/\<account-name\>.\<region\>.\<vpc-name\>/id](/components/networking/vpcs#exported-ssm-parameters):
|
|
22
|
+
The VPC ID.
|
|
23
|
+
- [/dlz/networking-entity/vpc/\<account-name\>.\<region\>.\<vpc-name\>.\<route-table-name\>/id](/components/networking/vpcs#exported-ssm-parameters):
|
|
24
|
+
The Route Table ID, one for each route table created in the VPC.
|
|
25
|
+
- [/dlz/networking-entity/vpc/\<account-name\>.\<region\>.\<vpc-name\>.\<route-table-name\>.\<subnet-name\>/id](/components/networking/vpcs#exported-ssm-parameters):
|
|
26
|
+
The Subnet ID, one for each subnet created in the route tables.
|
|
27
|
+
- [/dlz/networking-entity/bastion/\<bastion-name\>/security-group/id](/components/networking/bastion-hosts#exported-ssm-parameters):
|
|
28
|
+
The security group ID of the bastion host.
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Lake Formation TBAC strategy
|
|
3
|
+
description: References - Lake Formation TBAC strategy
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
We recommend adopting a Tag-Based Access Control (TBAC) strategy in Lake Formation and setting the `hybridMode` flag
|
|
9
|
+
to `false`, disabling IAM management.
|
|
10
|
+
|
|
11
|
+
Rather than directly assigning permissions to individual resources, this approach uses tags on resources,
|
|
12
|
+
and permissions are granted based on those tags to principals. This strategy simplifies data governance by significantly
|
|
13
|
+
reducing the effort required to set up and manage permissions, especially in large environments.
|
|
14
|
+
|
|
15
|
+
Here is a summary of the key concepts involved in Tag-Based Access Control (TBAC):
|
|
16
|
+
|
|
17
|
+
- **LF-Tags**: Key-value pairs that are attached to resources.
|
|
18
|
+
- **Resources**: These include databases, tables, and columns registered in Lake Formation.
|
|
19
|
+
- **Principals**: IAM entities (Users, Roles, AWS IAM Identity Center, SAML), AWS accounts, Organizations, and Organizational Units.
|
|
20
|
+
- **Grants**: Permissions given to principals for accessing resources based on their LF-tags.
|
|
21
|
+
|
|
22
|
+
## Tag-Based Access Control (TBAC)
|
|
23
|
+
|
|
24
|
+
Grants in TBAC are typically expressed as SQL statement pseudocode for easy conceptualization. These grants
|
|
25
|
+
ultimately translate into CloudFormation/CDK constructs. We will reason about permissions in this SQL format.
|
|
26
|
+
|
|
27
|
+
A typical Grant expression might look like this:
|
|
28
|
+
|
|
29
|
+
```sql
|
|
30
|
+
GRANT ACCESS ON TAGS foo=bar AND spam=eggs TO DataLakeUser
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Rules
|
|
34
|
+
|
|
35
|
+
LF-Tags follow a set of fundamental rules:
|
|
36
|
+
|
|
37
|
+
- Grants are applied **TO** principals **ON** specific tags. For example:
|
|
38
|
+
|
|
39
|
+
```sql
|
|
40
|
+
GRANT ACCESS ON TAGS foo=bar TO user
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- In a grant expression, all tag **keys** are evaluated using `AND` logic, while tag **values** are
|
|
44
|
+
evaluated using `OR` logic. For instance:
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
The user has access to resources tagged with both `foo=bar` AND `spam=eggs`
|
|
48
|
+
```sql
|
|
49
|
+
GRANT ACCESS ON TAGS foo=bar AND spam=eggs TO user
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The user has access to resources tagged with either `foo=bar` OR `foo=baz`
|
|
53
|
+
```sql
|
|
54
|
+
GRANT ACCESS ON TAGS foo=['bar', 'baz'] TO user
|
|
55
|
+
```
|
|
56
|
+
- Tags assigned to resources are **inherited**, unless specifically overridden.
|
|
57
|
+
|
|
58
|
+

|
|
59
|
+
- Grants ensure access to resources where **ALL** conditions specified are true.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Limitations
|
|
65
|
+
|
|
66
|
+
There are a few limitations in designing flexible tag systems:
|
|
67
|
+
- Tags are assigned to data catalog resources (databases, tables and columns), and each resource can
|
|
68
|
+
have multiple tags, with a maximum of **50 tags** and **no duplicate keys**.
|
|
69
|
+
|
|
70
|
+
- A resource cannot have the same LF-tag key more than once. For example, you cannot apply both
|
|
71
|
+
`team=sales` and `team=marketing` to the same table.
|
|
72
|
+
|
|
73
|
+
One workaround is to embed the name inside the tag key, making the tag behave as a toggle, such as
|
|
74
|
+
`team:sales=true` and `team:marketing=true`.
|
|
75
|
+
|
|
76
|
+
- A `GRANT` statement cannot use an `OR` condition across different tag keys. The following statement is
|
|
77
|
+
**invalid**:
|
|
78
|
+
|
|
79
|
+
❌ Invalid
|
|
80
|
+
```sql
|
|
81
|
+
GRANT ACCESS ON TAGS foo=bar OR spam=eggs TO user
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
✅ Valid
|
|
85
|
+
```sql
|
|
86
|
+
GRANT ACCESS ON TAGS foo=bar TO user
|
|
87
|
+
GRANT ACCESS ON TAGS spam=eggs TO user
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Best Practices
|
|
92
|
+
|
|
93
|
+
Here are some best practices and recommendations to consider when designing your tagging system:
|
|
94
|
+
|
|
95
|
+
- LF-Tags are hierarchical. If you apply a `GRANT` statement to a high-level resource (like a database),
|
|
96
|
+
this inherently grants access to all child resources (like a table) that share the same tag value.
|
|
97
|
+
|
|
98
|
+
- When creating a `GRANT` statement, remember that tags are **AND-ed**, not **OR-ed**. For example:
|
|
99
|
+
|
|
100
|
+
```sql
|
|
101
|
+
GRANT ACCESS ON TAGS team:marketing=true TO executives
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
This grants the `executives` group access to all resources tagged with `team:marketing=true`.
|
|
105
|
+
|
|
106
|
+
If the statement is modified to:
|
|
107
|
+
|
|
108
|
+
```sql
|
|
109
|
+
GRANT ACCESS ON TAGS team:marketing=true AND PII=true TO executives
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The `executives` group is granted access only to resources that are tagged with both `team:marketing=true`
|
|
113
|
+
and `PII=true`.
|
|
114
|
+
|
|
115
|
+
## Tag Strategy
|
|
116
|
+
|
|
117
|
+
There is no one-size-fits-all solution, the most effective strategy is the one that aligns best with an organization's
|
|
118
|
+
structure. The recommended strategies are a modified version of the
|
|
119
|
+
[AWS Recommended Common LF-Tag Ontologies](https://aws.github.io/aws-lakeformation-best-practices/lf-tags/common-ontologies/).
|
|
120
|
+
|
|
121
|
+
We suggest two strategies, pick the one that best fits your organization's structure:
|
|
122
|
+
|
|
123
|
+
- **Product-based tagging**: Tag resources based on the product/project they belong to and then create fine-grained
|
|
124
|
+
permission grants per principal/team. **Recommended for scenarios with many products and many teams**. This approach scales
|
|
125
|
+
with both products and team size but requires more effort in creating permission grants.
|
|
126
|
+
|
|
127
|
+
- **Team-based tagging**: Tag resources based on the team that needs access, assuming that it is acceptable that the same team tag will have
|
|
128
|
+
the same permission level to all resources they have access to. **Recommended for simplicity when you have many products but only a few
|
|
129
|
+
teams and can accept certain limitations.** This approach scales with the number of products but not the number of teams, due to the 50-tag limit on
|
|
130
|
+
resources.
|
|
131
|
+
|
|
132
|
+
Let's consider a scenario with the following teams and roles:
|
|
133
|
+
- `Admin` has the role `RoleAdmin`
|
|
134
|
+
- `DataEngineering` has the role `RoleDataEngineering`
|
|
135
|
+
- `DataScience` has the role `RoleDataScience`
|
|
136
|
+
|
|
137
|
+
We have the following products and their respective databases:
|
|
138
|
+
- `ProductA`: `Database1`, `Database2`
|
|
139
|
+
- `ProductB`: `Database3`
|
|
140
|
+
|
|
141
|
+
### Product-based tagging
|
|
142
|
+
|
|
143
|
+
This strategy involves tagging resources based on the product they belong to, followed by creating fine-grained
|
|
144
|
+
permission grants per team.
|
|
145
|
+
|
|
146
|
+
#### Suggested Tags
|
|
147
|
+
We suggest to start with a basic tagging strategy and limiting the number of tags:
|
|
148
|
+
- `product:<product_name> = true`: Tag resources belonging to a specific product.
|
|
149
|
+
- `sensitive = [true, false]`: Tag resources containing sensitive data (e.g., PII).
|
|
150
|
+
|
|
151
|
+
#### Resource Tagging
|
|
152
|
+
Start by tagging your resources, let's only apply them to Databases to keep things simple. Apply the following tags:
|
|
153
|
+
- `Database1`: `sensitive=false`, `product:productA=true`
|
|
154
|
+
- `Database2`: `sensitive=true`, `product:productA=true`
|
|
155
|
+
- `Database3`: `sensitive=false`, `product:productB=true`
|
|
156
|
+
|
|
157
|
+
#### Permissions
|
|
158
|
+
Admins need full access to all Databases, we don't have to specify the `senstive` tag as the value is irrelevant.
|
|
159
|
+
```sql
|
|
160
|
+
GRANT FULL ACCESS ON TAGS product:productA=true TO RoleAdmin
|
|
161
|
+
GRANT FULL ACCESS ON TAGS product:productB=true TO RoleAdmin
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
The following grants will allow the `DataEngineering` team full access to all Databases of all products that are not
|
|
165
|
+
sensitive. They will only be able to access `Database1` and `Database3`.
|
|
166
|
+
```sql
|
|
167
|
+
GRANT FULL ACCESS ON TAGS product:productA=true AND sensitive=false TO RoleDataEngineering
|
|
168
|
+
GRANT FULL ACCESS ON TAGS product:productB=true AND sensitive=false TO RoleDataEngineering
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The `DataScience` team requires read only access to ProductB. So they can only access `Database3`.
|
|
172
|
+
```sql
|
|
173
|
+
GRANT READ ACCESS ON TAGS product:productB=true AND sensitive=true TO RoleDataScience
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### Pros and Cons
|
|
177
|
+
|
|
178
|
+
This approach is effective when there are only a few products or databases that need to be shared across multiple teams.
|
|
179
|
+
In this model, you assign a product tag to each resource once and then configure permission grants for every team that
|
|
180
|
+
requires access to the product.
|
|
181
|
+
|
|
182
|
+
**Advantages**:
|
|
183
|
+
- You do not need to add additional tags to resources.
|
|
184
|
+
- Permission grants can be tailored to each team's requirements.
|
|
185
|
+
|
|
186
|
+
**Disadvantages**:
|
|
187
|
+
- Creating permission grants for every team and product can become time-consuming and complex as the number of teams
|
|
188
|
+
and products increases.
|
|
189
|
+
|
|
190
|
+
**Example Scenario**:
|
|
191
|
+
|
|
192
|
+
Assume you have 100 products or databases and 5 teams. If the SalesTeam requires access to 50 of these products, the
|
|
193
|
+
following grants would need to be created:
|
|
194
|
+
```sql
|
|
195
|
+
GRANT READ ONLY ACCESS ON TAGS product:productA=true AND sensitive=false TO RoleSales
|
|
196
|
+
GRANT READ ONLY ACCESS ON TAGS product:productB=true AND sensitive=false TO RoleSales
|
|
197
|
+
... repeat for remaining 48 products
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
If a new product is introduced, you must also grant permissions to each relevant team. For example:
|
|
201
|
+
```sql
|
|
202
|
+
GRANT FULL ACCESS ON TAGS product:productNEW=true AND sensitive=false TO RoleDataEngineering
|
|
203
|
+
GRANT READONLY ACCESS ON TAGS product:productNEW=true AND sensitive=false TO RoleDataScience
|
|
204
|
+
GRANT READONLY ACCESS ON TAGS product:productNEW=true AND sensitive=false TO RoleSales
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Team based tagging
|
|
208
|
+
|
|
209
|
+
This strategy involves tagging resources based on the team that requires access. However, it is important to note that
|
|
210
|
+
all resources associated with the same team tag will share the same permission level.
|
|
211
|
+
|
|
212
|
+
#### Suggested Tags
|
|
213
|
+
We suggest to start with a basic tagging strategy and limiting the number of tags:
|
|
214
|
+
Here are the basic tags:
|
|
215
|
+
- `team:<team_name> = true`: Assigned to resources that a specific team should access.
|
|
216
|
+
- `sensitive = [true, false]`: Indicates whether a resource contains sensitive data, such as Personally Identifiable
|
|
217
|
+
Information (PII).
|
|
218
|
+
|
|
219
|
+
#### Resource Tagging
|
|
220
|
+
Start by tagging your resources, let's only apply them to Databases to keep things simple. Apply the following tags,
|
|
221
|
+
assuming that we always have the `team:Admin=true` tag on all resources, as they must always have access to all
|
|
222
|
+
resources:
|
|
223
|
+
- `Database1` with tags (`sensitive=false`, `team:Admin=true`)
|
|
224
|
+
- `Database2` with tags (`sensitive=true`, `team:Admin=true`)
|
|
225
|
+
- `Database3` with tags (`sensitive=false`, `team:Admin=true`)
|
|
226
|
+
|
|
227
|
+
#### Permissions
|
|
228
|
+
Since Admins need full access to all Databases, we don't have to specify the `senstive` tag as the value is irrelevant.
|
|
229
|
+
```sql
|
|
230
|
+
GRANT FULL ACCESS ON TAGS team:Admin=true TO RoleAdmin
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
For the `DataEngineering` team to have full access to all Databases that are not sensitive, we need to specify their
|
|
234
|
+
grants as:
|
|
235
|
+
```sql
|
|
236
|
+
GRANT FULL ACCESS ON TAGS team:DataEngineering=true AND sensitive=false TO RoleDataEngineering
|
|
237
|
+
```
|
|
238
|
+
But now we have to add tags to our resources, our Databases now look like:
|
|
239
|
+
- `Database1` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`)
|
|
240
|
+
- `Database2` with tags (`sensitive=true`, `team:Admin=true`, `team:DataEngineering=true`)
|
|
241
|
+
- `Database3` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`)
|
|
242
|
+
|
|
243
|
+
The `DataScience` team requires read only access to Database3.
|
|
244
|
+
```sql
|
|
245
|
+
GRANT READ ACCESS ON TAGS team:DataScience=true AND sensitive=false TO RoleDataScience
|
|
246
|
+
```
|
|
247
|
+
But again, we have to add tags to our resources, our Databases now look like:
|
|
248
|
+
- `Database1` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`)
|
|
249
|
+
- `Database2` with tags (`sensitive=true`, `team:Admin=true`, `team:DataEngineering=true`)
|
|
250
|
+
- `Database3` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`, `team:DataScience=true`)
|
|
251
|
+
|
|
252
|
+
#### Pros and Cons
|
|
253
|
+
|
|
254
|
+
:::caution
|
|
255
|
+
This strategy has scalability limitations. AWS enforces a 50-tag limit per resource, which means you cannot exceed 50
|
|
256
|
+
teams. Additionally, other tags such as `sensitive` count toward this limit, reducing the number of team tags you can use.
|
|
257
|
+
:::
|
|
258
|
+
|
|
259
|
+
This approach is effective when you need to share **many products or databases** with **a small number of teams** and
|
|
260
|
+
can accommodate the restriction that all resources with the same team tag share identical permissions. You define the
|
|
261
|
+
permission grant once for the team's tag and apply it to all resources requiring access.
|
|
262
|
+
|
|
263
|
+
**Advantages**:
|
|
264
|
+
- Reduces the need for multiple permission grants.
|
|
265
|
+
- Straightforward to manage with a limited number of teams.
|
|
266
|
+
|
|
267
|
+
**Disadvantages**:
|
|
268
|
+
- Requires tagging resources for each team, which can become cumbersome.
|
|
269
|
+
- Teams with the same tag will have identical permissions for all tagged resources.
|
|
270
|
+
- Limited scalability due to the 50-tag resource limit.
|
|
271
|
+
|
|
272
|
+
**Example Scenario**:
|
|
273
|
+
|
|
274
|
+
Consider a situation with 100 products or databases and 5 teams. If the `SalesTeam` requires access to 50 of these
|
|
275
|
+
products, you would need to update the tags on each database:
|
|
276
|
+
- `Database1` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`, `team:Sales=true`)
|
|
277
|
+
- `Database2` with tags (`sensitive=true`, `team:Admin=true`, `team:DataEngineering=true`, `team:Sales=true`)
|
|
278
|
+
- `Database3` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`, `team:DataScience=true`, `team:Sales=true`)
|
|
279
|
+
- ... repeat for remaining 47 products/databases
|
|
280
|
+
|
|
281
|
+
When introducing a new product or database, you must also update its tags for each relevant team:
|
|
282
|
+
- `DatabaseNEW` with tags (`sensitive=false`, `team:Admin=true`, `team:DataEngineering=true`, `team:Sales=true`)
|
|
283
|
+
|
|
284
|
+
## Other Sources
|
|
285
|
+
- https://aws.github.io/aws-lakeformation-best-practices/
|
|
286
|
+
- https://docs.aws.amazon.com/lake-formation/latest/dg/lf-tag-considerations.html
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Network Address
|
|
3
|
+
description: Network Address
|
|
4
|
+
---
|
|
5
|
+
import DualCode from "../../../components/DualCode.astro";
|
|
6
|
+
|
|
7
|
+
A Network Address uniquely identifies a network resource, such as a VPC, subnet, or route table. These addresses can
|
|
8
|
+
be used across accounts and regions, enabling seamless selection and referencing of network resources. They are
|
|
9
|
+
commonly used when defining VPC-bound resources in the DLZ, like NATs, Bastion Hosts, VPC Peering, etc.
|
|
10
|
+
|
|
11
|
+
Network Addresses are weakly typed strings that follow the schema below:
|
|
12
|
+
```
|
|
13
|
+
<account-name>.<region>.<vpc-name>.<route-table-name>.<subnet-name>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Examples of Network Address Usage
|
|
17
|
+
|
|
18
|
+
<DualCode>
|
|
19
|
+
<Fragment slot="ts">
|
|
20
|
+
```ts
|
|
21
|
+
/* As a string */
|
|
22
|
+
NetworkAddress.fromString("account.region.vpc.route-table.subnet")
|
|
23
|
+
/* Using the class constructor */
|
|
24
|
+
new NetworkAddress('account', 'region', 'vpc', 'route-table', 'subnet')
|
|
25
|
+
```
|
|
26
|
+
</Fragment>
|
|
27
|
+
<Fragment slot="python">
|
|
28
|
+
```python
|
|
29
|
+
# As a string
|
|
30
|
+
NetworkAddress.from_string("account.region.vpc.route-table.subnet")
|
|
31
|
+
# Using the class constructor
|
|
32
|
+
NetworkAddress('account', 'region', 'vpc', 'route-table', 'subnet')
|
|
33
|
+
```
|
|
34
|
+
</Fragment>
|
|
35
|
+
</DualCode>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
This schema allows you to select various network entities. A network entity is defined as one or more accounts, VPCs,
|
|
39
|
+
regions, or subnets. Below are examples of possible selections:
|
|
40
|
+
|
|
41
|
+
- `development.us-east-1.default.private.private-1`: Selects a specific private subnet in the default VPC within the
|
|
42
|
+
development account in the us-east-1 region.
|
|
43
|
+
- `development.us-east-1.default.private`: Selects all private subnets in the default VPC within the development
|
|
44
|
+
account in the us-east-1 region.
|
|
45
|
+
- `development.us-east-1.default`: Selects all route tables and their associated subnets in the default VPC within the
|
|
46
|
+
development account in the us-east-1 region.
|
|
47
|
+
- `development.us-east-1`: Selects all VPCs, along with their route tables and subnets, within the development account
|
|
48
|
+
in the us-east-1 region.
|
|
49
|
+
- `development`: Selects all VPCs, route tables, and subnets across all regions within the development account.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## API References
|
|
53
|
+
- [NetworkAddress](/reference/api#networkaddress)
|
|
54
|
+
- [DlzAccountNetworks](/reference/api#dlzaccountnetworks)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
description:
|
|
2
|
+
title: Add Account
|
|
3
|
+
description: Add Account
|
|
4
4
|
---
|
|
5
|
-
import DualCode from '
|
|
5
|
+
import DualCode from '../../../components/DualCode.astro';
|
|
6
6
|
|
|
7
7
|
This Standard Operating Procedure (SOP) provides a guide on how to add a new or existing account to AWS Control Tower.
|
|
8
8
|
|
|
@@ -76,7 +76,6 @@ SSO user.
|
|
|
76
76
|
</Fragment>
|
|
77
77
|
<Fragment slot="python">
|
|
78
78
|
```python
|
|
79
|
-
#!/usr/bin/env python3
|
|
80
79
|
import aws_cdk as cdk
|
|
81
80
|
import aws_data_landing_zone as dlz
|
|
82
81
|
|
|
@@ -97,8 +96,6 @@ SSO user.
|
|
|
97
96
|
)
|
|
98
97
|
),
|
|
99
98
|
)
|
|
100
|
-
|
|
101
|
-
app.synth()
|
|
102
99
|
````
|
|
103
100
|
</Fragment>
|
|
104
101
|
</DualCode>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IAM Identity Center Setup - External Identity Providers
|
|
3
|
+
description: IAM Identity Center Setup - External Identity Providers
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
*AWS IAM Identity Center* (formerly AWS Single Sign-On) allows centralized management of access to multiple AWS accounts
|
|
7
|
+
and applications. This guide outlines the step-by-step process to configure IAM Identity Center with external identity
|
|
8
|
+
providers (IdPs) for managing users in your AWS environment.
|
|
9
|
+
|
|
10
|
+
For comprehensive instructions, refer to the AWS documentation on [IAM Identity Center Identity Source](https://docs.aws.amazon.com/singlesignon/latest/userguide/tutorials.html).
|
|
11
|
+
|
|
12
|
+
:::note
|
|
13
|
+
Disable automatic provisioning and map the IdP Email attribute to the IAM Identity Center Email attribute.
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
## Enable IAM Identity Center
|
|
17
|
+
1. Log in to the **Management** account, which serves as the root account for the organization and the AWS Control Tower
|
|
18
|
+
account.
|
|
19
|
+
2. Ensure you are in the home/global region specified in your Control Tower setup.
|
|
20
|
+
3. Navigate to the **IAM Identity Center** service.
|
|
21
|
+
4. If accessing IAM Identity Center for the first time, you will be prompted to enable it.
|
|
22
|
+
5. Click **Enable IAM Identity Center**, choose "Enable with AWS Organizations," and click **Continue**.
|
|
23
|
+

|
|
24
|
+
6. Select **External identity provider** as your identity source.
|
|
25
|
+

|
|
26
|
+
7. Configure a SAML application in your IdP. Refer to the IdP documentation for guidance. For example, Google provides
|
|
27
|
+
[this guide](https://support.google.com/a/answer/6087519?hl=en#zippy=%2Cstep-add-the-custom-saml-app). Follow the
|
|
28
|
+
steps specific to your IdP and copy the IAM Identity Center Service Provider metadata into the IdP configuration.
|
|
29
|
+

|
|
30
|
+
8. Once the IdP steps are complete, download the IdP SAML metadata file and upload it to IAM Identity Center. Click
|
|
31
|
+
**Next**.
|
|
32
|
+
9. If switching identity sources, a warning will appear. Carefully review it and consult external resources to understand
|
|
33
|
+
the implications of changing the identity source.
|
|
34
|
+

|
|
35
|
+
10. Turn off automatic provisioning, as users will be defined through the DLZ.
|
|
36
|
+

|
|
37
|
+

|
|
38
|
+
11. Create a Trusted Token Issuer by navigating to the **Authentication** section in the settings page. Click
|
|
39
|
+
**Create Trusted Token Issuer**.
|
|
40
|
+

|
|
41
|
+
12. Complete the Trusted Token Issuer fields based on your IdP:
|
|
42
|
+
- Provide a name, such as `google`.
|
|
43
|
+
- Enter the Trusted Token Issuer URL, e.g., `https://accounts.google.com/`.
|
|
44
|
+
- Map the IdP **Email (email)** attribute to the **Email** attribute in IAM Identity Center. Mapping email is crucial
|
|
45
|
+
for using it as the username and matching users with the IdP.
|
|
46
|
+

|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IAM Identity Center Setup - Internal User Store
|
|
3
|
+
description: IAM Identity Center Setup - Internal User Store
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
*AWS IAM Identity Center* (formerly AWS Single Sign-On) enables centralized access management for multiple AWS accounts
|
|
7
|
+
and applications. This guide provides a detailed step-by-step process to set up IAM Identity Center using the
|
|
8
|
+
Identity Center directory to manage users within your AWS environment.
|
|
9
|
+
|
|
10
|
+
For additional details, refer to the official AWS documentation on
|
|
11
|
+
[IAM Identity Center Identity Source](https://docs.aws.amazon.com/singlesignon/latest/userguide/tutorials.html).
|
|
12
|
+
|
|
13
|
+
## Enable IAM Identity Center
|
|
14
|
+
1. Log in to the **Management** account, which serves as the root account for the organization and the AWS Control Tower
|
|
15
|
+
account.
|
|
16
|
+
2. Ensure you are in the home/global region specified in your Control Tower setup.
|
|
17
|
+
3. Navigate to the **IAM Identity Center** service.
|
|
18
|
+
4. If accessing IAM Identity Center for the first time, you will be prompted to enable it.
|
|
19
|
+
5. Click **Enable IAM Identity Center**, choose "Enable with AWS Organizations," and click **Continue**.
|
|
20
|
+

|
|
21
|
+
6. Select **Identity Center directory** as your identity source.
|
|
22
|
+

|
|
23
|
+
7. Click **Next** and complete any additional steps as required.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IAM Identity Center Setup
|
|
3
|
+
description: IAM Identity Center Setup
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
This Standard Operating Procedure (SOP) provides guidance on setting up IAM Identity Center (formerly AWS Single
|
|
7
|
+
Sign-On) and integrating it with the Data Landing Zone (DLZ) to manage users, permissions, and roles.
|
|
8
|
+
|
|
9
|
+
AWS IAM Identity Center simplifies access management by providing centralized user sign-in and permissions for AWS
|
|
10
|
+
accounts and applications. It integrates with external Identity Providers (IdPs) or the internal Identity Center
|
|
11
|
+
directory to manage user authentication and assign access permissions in a unified manner.
|
|
12
|
+
|
|
13
|
+
## Enable IAM Identity Center
|
|
14
|
+
|
|
15
|
+
Choose one of the following options based on your requirements:
|
|
16
|
+
|
|
17
|
+
### Use Internal Directory (AWS IAM Identity Center Directory)
|
|
18
|
+
|
|
19
|
+
Refer to the [SOP - IAM Identity Center Internal Directory](iam-identity-center-setup-internal) for detailed instructions.
|
|
20
|
+
|
|
21
|
+
Select the Internal Directory when:
|
|
22
|
+
- Users are managed natively within AWS IAM Identity Center without external dependencies.
|
|
23
|
+
- User creation, management, and authentication occur entirely within the AWS environment.
|
|
24
|
+
- This option is suitable for simpler setups or environments without an external IdP.
|
|
25
|
+
- It allows direct management of users and groups within AWS.
|
|
26
|
+
|
|
27
|
+
### Use External Identity Provider
|
|
28
|
+
|
|
29
|
+
Refer to the [SOP - IAM Identity Center External Identity Provider](iam-identity-center-setup-external) for detailed
|
|
30
|
+
instructions.
|
|
31
|
+
|
|
32
|
+
Select an External Identity Provider when:
|
|
33
|
+
- You need to integrate an existing external IdP, such as Google Workspace, Microsoft Azure AD, or Okta.
|
|
34
|
+
- Users authenticate through the external IdP, with AWS IAM Identity Center federating their access based on AWS-defined
|
|
35
|
+
permissions.
|
|
36
|
+
- This option is ideal for organizations already managing users with an external IdP to centralize identity management.
|
|
37
|
+
- It supports authentication standards like SAML 2.0 or OIDC.
|
|
38
|
+
|
|
39
|
+
## Configure the DLZ Construct to Use IAM Identity Center
|
|
40
|
+
|
|
41
|
+
Retrieve the required settings from the IAM Identity Center dashboard and configure them in the DLZ construct.
|
|
42
|
+
|
|
43
|
+

|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|