aws-data-landing-zone 0.0.42 → 0.0.44
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 +85 -19
- package/docs/astro.config.ts +47 -36
- package/docs/public/favicon.png +0 -0
- package/docs/src/content/docs/components/account-management/accounts.mdx +1 -1
- 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 +134 -49
- package/docs/src/content/docs/reference/defaults.mdx +9 -0
- package/docs/src/content/docs/reference/extending-and-escape-hatches.mdx +50 -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/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 -3
- 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 -4
- 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 -58
- 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
package/.jsii
CHANGED
|
@@ -3685,7 +3685,7 @@
|
|
|
3685
3685
|
},
|
|
3686
3686
|
"name": "aws-data-landing-zone",
|
|
3687
3687
|
"readme": {
|
|
3688
|
-
"markdown": "# Data Landing Zone\n\n<!-- TOC -->\n* [Getting Started](#getting-started)\n * [Typescript](#typescript)\n * [Python](#python-example)\n* [Key Features](#key-features)\n* [Intended Audience](#intended-audience)\n* [Core Principles](#core-principles)\n* [Integrated AWS Services](#integrated-aws-services)\n* [How it works](#how-it-works)\n* [Sponsors](#sponsors)\n* [Contributing](#contributing)\n* [Docs](#docs)\n* [Roadmap](#roadmap)\n<!-- TOC -->\n\nThe **Data Landing Zone (DLZ)** is a CDK construct designed to accelerate AI and data-related projects. It provides an\nopinionated Landing Zone, laying the foundation for a multi-account AWS strategy, so you can focus on delivering data\nand AI solutions.\n\nThe DLZ can be deployed in existing AWS Organizations or used in greenfield projects. It supports setups ranging\nfrom small organizations with a few accounts to large enterprises with hundreds of accounts.\n\nSee the Documentation Website: https://datalandingzone.com/ for more information.\n\nThe CDK construct is available in both TypeScript and Python. Example GitHub repositories showing usage:\n- [TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)\n- [Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)\n\n## Getting Started\n\n### Typescript\n\nInstall the [aws-data-landing-zone](https://www.npmjs.com/package/aws-data-landing-zone) CDK construct from NPM:\n\n```bash\nnpm install aws-data-landing-zone\n```\n\nUse the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and\n`regions` with your own values as per AWS Control Tower & AWS Organizations.\n\nThe example below shows a simple DLZ setup with two accounts, one for development and one for production, creating\ntwo non-overlapping VPCs in two regions in each account.\n\n```ts\nimport {App} from 'aws-cdk-lib';\nimport { DataLandingZone } from 'aws-data-landing-zone';\n\nconst app = new App();\nconst dlz = new DataLandingZone(app, {\n ...\n regions: {\n global: Region.EU_WEST_1,\n regional: [Region.US_EAST_1],\n },\n organization: {\n organizationId: 'o-0f5h921gk9',\n root: { accounts: { management: { accountId: '123456789012', }, }, },\n ous: {\n workloads: {\n ouId: 'ou-h2l0-gjr36ikn',\n accounts: [{\n name: 'development',\n accountId: '123456789012',\n type: DlzAccountType.DEVELOP,\n vpcs: [\n Defaults.vpcClassB3Private3Public(0, Region.US_EAST_1),\n Defaults.vpcClassB3Private3Public(1, Region.EU_WEST_1),\n ],\n },{\n name: 'production',\n accountId: '123456789012',\n type: DlzAccountType.PRODUCTION,\n vpcs: [\n Defaults.vpcClassB3Private3Public(2, Region.US_EAST_1),\n Defaults.vpcClassB3Private3Public(3, Region.EU_WEST_1),\n ],\n },\n\n ...AS MANY ACCOUNTS AS DESIRED...\n\n ]\n },\n },\n ...\n }\n});\n```\n\nContinue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.\n\n\n### Python\n\nInstall the [aws-data-landing-zone](https://pypi.org/project/aws-data-landing-zone/#description) CDK construct from PyPi:\n\n```bash\npip install aws-data-landing-zone\n```\n\nUse the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and\n`regions` with your own values as per AWS Control Tower & AWS Organizations.\n\nThe example below shows a simple DLZ setup with two accounts, one for development and one for production, creating\ntwo non-overlapping VPCs in two regions in each account.\n\n```python\n#!/usr/bin/env python3\nimport aws_cdk as cdk\nimport aws_data_landing_zone as dlz\n\napp = cdk.App()\ndlz.DataLandingZone(app,\n local_profile=\"ct-sandbox-exported\",\n regions=dlz.DlzRegions(\n global_=dlz.Region.EU_WEST_1,\n regional=[dlz.Region.US_EAST_1],\n ),\n organization=dlz.DLzOrganization(\n organization_id='o-0f5h921gk9',\n root=dlz.RootOptions(\n accounts=dlz.OrgRootAccounts(\n management=dlz.DLzManagementAccount(account_id='123456789012'),\n ),\n ),\n ous=dlz.OrgOus(\n workloads=dlz.OrgOuWorkloads(\n ou_id='ou-h2l0-gjr36ikn',\n accounts=[\n dlz.DLzAccount(\n name='development',\n account_id='123456789012',\n type=dlz.DlzAccountType.DEVELOP,\n vpcs=[\n dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.US_EAST_1),\n dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.EU_WEST_1),\n ]\n ),\n dlz.DLzAccount(\n name='production',\n account_id='123456789012',\n type=dlz.DlzAccountType.PRODUCTION,\n vpcs=[\n dlz.Defaults.vpc_class_b3_private3_public(2, dlz.Region.US_EAST_1),\n dlz.Defaults.vpc_class_b3_private3_public(3, dlz.Region.EU_WEST_1),\n ]\n ),\n ],\n ),\n )\n ),\n)\n```\n\nContinue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.\n\n## Key Features\n\nNotable features of the DLZ include:\n\n- A CDK construct that can be used in TS and Python\n- Opinionated but configurable and extendable. Each stack and nested component can be extended if needed.\n- Leverages AWS Control Tower. Works with existing or new AWS Control Tower setups.\n- Suitable for greenfield projects or integration with existing AWS resources.\n- Deployable using any build systems like GitHub, GitLab, Jenkins, or locally.\n- Generates compliance reports, reporting the Control Tower Standards, SecurityHub controls, Config Rules and\n Service Control Policies enabled in each account.\n- Implements an internal wave- and stage-based deployment strategy for dependency management.\n- Includes helper scripts and Standard Operating Procedures (SOPs) for routine tasks.\n- Accompanied by comprehensive documentation.\n\n## Intended Audience\n\nThe DLZ handles the responsibilities and routine tasks typically managed by a Cloud Center of Excellence (CCoE) team.\nIt's easy enough for Data Engineers to use on their own, but flexible enough to be customized and fine-tuned by\nexperienced Cloud Engineers.\n\nIt's important to establish the following responsibilities to understand what is in and out of scope for the DLZ:\n- **In scope** - Any CCoE responsibilities and tasks, such as account management, security, networking, compliance, etc.\n- **Out of scope** - Application development, data engineering, and data science tasks.\n\n## Core Principles\n\nThe DLZ adheres to the following principles:\n\n1. Opinionated but configurable defaults to suit diverse needs.\n2. High levels of automation with manual SOPs where needed.\n3. Simplicity and ease of understanding over complexity\n4. Focused scope, limited to Landing Zone responsibilities.\n\n## Integrated AWS Services\n\n- **AWS Organizations:** Seamless multi-account management.\n- **AWS Budgets:** Track spending by tags with notifications via Slack, Teams, or email.\n- **Service Control Policies (SCPs):** Manage service deny lists.\n- **Tag Policies:** Enforce resource tagging for spend tracking and ownership.\n- **Control Tower Controls:** Opinionated defaults for preventive, detective, and proactive standards.\n- **AWS Security Hub** and **AWS Config:** Additional standards not covered by Control Tower. Notifications are\n delivered via Slack, Teams, or email\n- **Network Management:**\n - Non-overlapping **VPCs** across accounts.\n - **NAT Gateways** or instances for outbound private access.\n - **VPC Peering** for cross-account/region communication.\n - **Bastion Hosts** with **AWS SSM** for secure private resource access.\n - Simplified routing configurations.\n- **IAM Identity Center (SSO):**\n - User management with **AWS Identity Store** or external IDPs (e.g., Google, Active Directory).\n - Manage **Permission Sets**\n - Manage **Access Groups** to assign Users to Accounts with a given Permission Set\n- **Permission Boundaries:** Prevent privilege escalation for all IAM roles and users.\n- Configure **Lake Formation** for Data Lake management, including:\n - General settings, like admins, version and setting hybrid iam mode\n - Create **Tags** and specify their permissions for use within the same account and when sharing to other accounts.\n - Optionally, set **Tag Permissions** on Tags. This is usually out of scope for DLZ, but can be configured.\n\n## How it works\n\nThe DLZ defines all accounts and resources in a single CDK construct that can be used in Typescript or Python CDK\nproject.\n\nThe DLZ deploys resources into specified AWS accounts. These accounts must be created manually (SOP provided) in the\nworkloads OU, and their Account IDs must be provided in the DLZ configuration. Each account is designated\nas either `development` or `production` to enable controlled, staged deployments, including the option for manual\napprovals in production environments.\n\nThe construct processes the provided configuration to create logical deployment layers for resources. Each layer\nconsists of a Global Wave and optionally one or more Regional Waves. This structure ensures that all `global` stacks\nfor the accounts are deployed before the `regional` stacks. Resources in the `global` stack are region-independent, such\nas IAM roles, whereas resources like VPCs can be deployed in both `global` and `regional` stacks if configured as such.\n\nContinue reading the [Introduction](https://datalandingzone.com/introduction/) on the Data Landing Zone documentation site.\n\n## Sponsors\nProudly sponsored and created by [DataChef](https://datachef.co.za/)\n\n## Contributing\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more info\n\n## Docs\nCan be found at https://datalandingzone.com/\n\n## Roadmap\nCan be found in the [here](https://github.com/orgs/DataChefHQ/projects/4)\n"
|
|
3688
|
+
"markdown": "# Data Landing Zone\n\n<!-- TOC -->\n* [Getting Started](#getting-started)\n * [Typescript](#typescript)\n * [Python](#python-example)\n* [Key Features](#key-features)\n* [Intended Audience](#intended-audience)\n* [Core Principles](#core-principles)\n* [Integrated AWS Services](#integrated-aws-services)\n* [How it works](#how-it-works)\n* [Sponsors](#sponsors)\n* [Contributing](#contributing)\n* [Docs](#docs)\n* [Roadmap](#roadmap)\n<!-- TOC -->\n\nThe **Data Landing Zone (DLZ)** is a CDK construct designed to accelerate AI and data-related projects. It provides an\nopinionated Landing Zone, laying the foundation for a multi-account AWS strategy, so you can focus on delivering data\nand AI solutions.\n\nThe DLZ can be deployed in existing AWS Organizations or used in greenfield projects. It supports setups ranging\nfrom small organizations with a few accounts to large enterprises with hundreds of accounts.\n\nSee the Documentation Website: https://datalandingzone.com/ for more information.\n\nThe CDK construct is available in both TypeScript and Python. Example GitHub repositories showing usage:\n- [TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)\n- [Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)\n\n## Getting Started\n\n### Typescript\n\nInstall the [aws-data-landing-zone](https://www.npmjs.com/package/aws-data-landing-zone) CDK construct from NPM:\n\n```bash\nnpm install aws-data-landing-zone\n```\n\nUse the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and\n`regions` with your own values as per AWS Control Tower & AWS Organizations.\n\nThe example below shows a simple DLZ setup with two accounts, one for development and one for production, creating\ntwo non-overlapping VPCs in two regions in each account.\n\n```ts\nimport {App} from 'aws-cdk-lib';\nimport { DataLandingZone, Defaults } from 'aws-data-landing-zone';\n\nconst app = new App();\nconst dlz = new DataLandingZone(app, {\n ...\n regions: {\n global: Region.EU_WEST_1,\n regional: [Region.US_EAST_1],\n },\n budgets: [\n ...Defaults.budgets(100, 20, {\n slack: slackBudgetNotifications,\n emails: ['you@org.com'],\n }),\n ],\n denyServiceList: [\n ...Defaults.denyServiceList(),\n 'ecs:*',\n ],\n organization: {\n organizationId: 'o-0f5h921gk9',\n root: { accounts: { management: { accountId: '123456789012', }, }, },\n ous: {\n workloads: {\n ouId: 'ou-h2l0-gjr36ikn',\n accounts: [{\n name: 'development',\n accountId: '123456789012',\n type: DlzAccountType.DEVELOP,\n vpcs: [\n Defaults.vpcClassB3Private3Public(0, Region.EU_WEST_1), // CIDR 10.0.0./19\n Defaults.vpcClassB3Private3Public(1, Region.US_EAST_1), // CIDR 10.1.0./19\n ]\n },{\n name: 'production',\n accountId: '123456789012',\n type: DlzAccountType.PRODUCTION,\n ...\n },\n\n ...AS MANY ACCOUNTS AS DESIRED...\n ]\n },\n },\n ...\n },\n network: {\n nats: [\n {\n name: \"development-eu-west-1-internet-access\",\n location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'public', 'public-1'),\n allowAccessFrom: [\n new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private')\n ],\n type: {\n gateway: {\n eip: ... //Optional\n }\n }\n },\n ],\n bastionHosts: [\n {\n name: 'default',\n location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private', 'private-1'),\n instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MICRO),\n }\n ]\n }\n});\n```\n\nContinue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.\n\n\n### Python\n\nInstall the [aws-data-landing-zone](https://pypi.org/project/aws-data-landing-zone/#description) CDK construct from PyPi:\n\n```bash\npip install aws-data-landing-zone\n```\n\nUse the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and\n`regions` with your own values as per AWS Control Tower & AWS Organizations.\n\nThe example below shows a simple DLZ setup with two accounts, one for development and one for production, creating\ntwo non-overlapping VPCs in two regions in each account.\n\n```python\nimport aws_cdk as cdk\nimport aws_data_landing_zone as dlz\n\napp = cdk.App()\ndlz.DataLandingZone(app,\n ...\n regions=dlz.DlzRegions(\n global_=dlz.Region.EU_WEST_1,\n regional=[dlz.Region.US_EAST_1],\n ),\n budgets=[\n *dlz.Defaults.budgets(\n 100,\n 20,\n slack=slack_budget_notifications,\n emails=[\"you@org.com\"],\n ),\n ],\n deny_service_list=[\n *dlz.Defaults.deny_service_list(),\n \"ecs:*\"\n ],\n organization=dlz.DLzOrganization(\n organization_id='o-0f5h921gk9',\n root=dlz.RootOptions(\n accounts=dlz.OrgRootAccounts(\n management=dlz.DLzManagementAccount(account_id='123456789012'),\n ),\n ),\n ous=dlz.OrgOus(\n workloads=dlz.OrgOuWorkloads(\n ou_id='ou-h2l0-gjr36ikn',\n accounts=[\n dlz.DLzAccount(\n name='development',\n account_id='123456789012',\n type=dlz.DlzAccountType.DEVELOP,\n vpcs: [\n dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.EU_WEST_1), # CIDR 10.0.0./19\n dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.US_EAST_1), # CIDR 10.1.0./19\n ]\n ),\n dlz.DLzAccount(\n name='production',\n account_id='123456789012',\n type=dlz.DlzAccountType.PRODUCTION,\n ),\n ],\n ),\n )\n ),\n network={\n \"nats\": [\n {\n \"name\": \"development-eu-west-1-internet-access\",\n \"location\": NetworkAddress(\n \"development\", str(Region.EU_WEST_1), \"default\", \"public\", \"public-1\",\n ),\n \"allow_access_from\": [\n NetworkAddress(\n \"development\", str(Region.EU_WEST_1), \"default\", \"private\"\n ),\n ],\n \"type\": {\n \"gateway\": {\n },\n },\n },\n ],\n \"bastion_hosts\": [\n {\n \"name\": \"default\",\n \"location\": NetworkAddress(\n \"development\", str(Region.EU_WEST_1), \"default\", \"public\", \"public-1\",\n ),\n \"instance_type\": ec2.InstanceType.of(\n ec2.InstanceClass.T3, ec2.InstanceSize.MICRO\n ),\n }\n ]\n }\n)\n```\n\nContinue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.\n\n## Key Features\n\nNotable features of the DLZ include:\n\n- A CDK construct that can be used in TS and Python\n- Opinionated but configurable and extendable. Each stack and nested component can be extended if needed.\n- Leverages AWS Control Tower. Works with existing or new AWS Control Tower setups.\n- Suitable for greenfield projects or integration with existing AWS resources.\n- Deployable using any build systems like GitHub, GitLab, Jenkins, or locally.\n- Generates compliance reports, reporting the Control Tower Standards, SecurityHub controls, Config Rules and\n Service Control Policies enabled in each account.\n- Implements an internal wave- and stage-based deployment strategy for dependency management.\n- Includes helper scripts and Standard Operating Procedures (SOPs) for routine tasks.\n- Accompanied by comprehensive documentation.\n\n## Intended Audience\n\nThe DLZ handles the responsibilities and routine tasks typically managed by a Cloud Center of Excellence (CCoE) team.\nIt's easy enough for Data Engineers to use on their own, but flexible enough to be customized and fine-tuned by\nexperienced Cloud Engineers.\n\nIt's important to establish the following responsibilities to understand what is in and out of scope for the DLZ:\n- **In scope** - Any CCoE responsibilities and tasks, such as account management, security, networking, compliance, etc.\n- **Out of scope** - Application development, data engineering, and data science tasks.\n\n## Core Principles\n\nThe DLZ adheres to the following principles:\n\n1. Opinionated but configurable defaults to suit diverse needs.\n2. High levels of automation with manual SOPs where needed.\n3. Simplicity and ease of understanding over complexity\n4. Focused scope, limited to Landing Zone responsibilities.\n\n## Integrated AWS Services\n\n- **AWS Organizations:** Seamless multi-account management.\n- **AWS Budgets:** Track spending by tags with notifications via Slack, Teams, or email.\n- **Service Control Policies (SCPs):** Manage service deny lists.\n- **Tag Policies:** Enforce resource tagging for spend tracking and ownership.\n- **Control Tower Controls:** Opinionated defaults for preventive, detective, and proactive standards.\n- **AWS Security Hub** and **AWS Config:** Additional standards not covered by Control Tower. Notifications are\n delivered via Slack, Teams, or email\n- **Network Management:**\n - Non-overlapping **VPCs** across accounts.\n - **NAT Gateways** or instances for outbound private access.\n - **VPC Peering** for cross-account/region communication.\n - **Bastion Hosts** with **AWS SSM** for secure private resource access.\n - Simplified routing configurations.\n- **IAM Identity Center (SSO):**\n - User management with **AWS Identity Store** or external IDPs (e.g., Google, Active Directory).\n - Manage **Permission Sets**\n - Manage **Access Groups** to assign Users to Accounts with a given Permission Set\n- **Permission Boundaries:** Prevent privilege escalation for all IAM roles and users.\n- Configure **Lake Formation** for Data Lake management, including:\n - General settings, like admins, version and setting hybrid iam mode\n - Create **Tags** and specify their permissions for use within the same account and when sharing to other accounts.\n - Optionally, set **Tag Permissions** on Tags. This is usually out of scope for DLZ, but can be configured.\n\n## How it works\n\nThe DLZ defines all accounts and resources in a single CDK construct that can be used in Typescript or Python CDK\nproject.\n\nThe DLZ deploys resources into specified AWS accounts. These accounts must be created manually (SOP provided) in the\nworkloads OU, and their Account IDs must be provided in the DLZ configuration. Each account is designated\nas either `development` or `production` to enable controlled, staged deployments, including the option for manual\napprovals in production environments.\n\nThe construct processes the provided configuration to create logical deployment layers for resources. Each layer\nconsists of a Global Wave and optionally one or more Regional Waves. This structure ensures that all `global` stacks\nfor the accounts are deployed before the `regional` stacks. Resources in the `global` stack are region-independent, such\nas IAM roles, whereas resources like VPCs can be deployed in both `global` and `regional` stacks if configured as such.\n\nContinue reading the [Introduction](https://datalandingzone.com/introduction/) on the Data Landing Zone documentation site.\n\n## Sponsors\nProudly sponsored and created by [DataChef](https://datachef.co.za/)\n\n## Contributing\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more info\n\n## Docs\nCan be found at https://datalandingzone.com/\n\n## Roadmap\nCan be found in the [here](https://github.com/orgs/DataChefHQ/projects/4)\n"
|
|
3689
3689
|
},
|
|
3690
3690
|
"repository": {
|
|
3691
3691
|
"type": "git",
|
|
@@ -13221,6 +13221,6 @@
|
|
|
13221
13221
|
"symbolId": "src/stacks/organization/workloads/base/regional-stack:WorkloadRegionalStack"
|
|
13222
13222
|
}
|
|
13223
13223
|
},
|
|
13224
|
-
"version": "0.0.
|
|
13225
|
-
"fingerprint": "
|
|
13224
|
+
"version": "0.0.44",
|
|
13225
|
+
"fingerprint": "LFLqO49MMsRG7OKPCBBja62xPmB4b10WnS/vLnaNr4U="
|
|
13226
13226
|
}
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ two non-overlapping VPCs in two regions in each account.
|
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import {App} from 'aws-cdk-lib';
|
|
49
|
-
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
49
|
+
import { DataLandingZone, Defaults } from 'aws-data-landing-zone';
|
|
50
50
|
|
|
51
51
|
const app = new App();
|
|
52
52
|
const dlz = new DataLandingZone(app, {
|
|
@@ -55,6 +55,16 @@ const dlz = new DataLandingZone(app, {
|
|
|
55
55
|
global: Region.EU_WEST_1,
|
|
56
56
|
regional: [Region.US_EAST_1],
|
|
57
57
|
},
|
|
58
|
+
budgets: [
|
|
59
|
+
...Defaults.budgets(100, 20, {
|
|
60
|
+
slack: slackBudgetNotifications,
|
|
61
|
+
emails: ['you@org.com'],
|
|
62
|
+
}),
|
|
63
|
+
],
|
|
64
|
+
denyServiceList: [
|
|
65
|
+
...Defaults.denyServiceList(),
|
|
66
|
+
'ecs:*',
|
|
67
|
+
],
|
|
58
68
|
organization: {
|
|
59
69
|
organizationId: 'o-0f5h921gk9',
|
|
60
70
|
root: { accounts: { management: { accountId: '123456789012', }, }, },
|
|
@@ -66,26 +76,45 @@ const dlz = new DataLandingZone(app, {
|
|
|
66
76
|
accountId: '123456789012',
|
|
67
77
|
type: DlzAccountType.DEVELOP,
|
|
68
78
|
vpcs: [
|
|
69
|
-
Defaults.vpcClassB3Private3Public(0, Region.
|
|
70
|
-
Defaults.vpcClassB3Private3Public(1, Region.
|
|
71
|
-
]
|
|
79
|
+
Defaults.vpcClassB3Private3Public(0, Region.EU_WEST_1), // CIDR 10.0.0./19
|
|
80
|
+
Defaults.vpcClassB3Private3Public(1, Region.US_EAST_1), // CIDR 10.1.0./19
|
|
81
|
+
]
|
|
72
82
|
},{
|
|
73
83
|
name: 'production',
|
|
74
84
|
accountId: '123456789012',
|
|
75
85
|
type: DlzAccountType.PRODUCTION,
|
|
76
|
-
|
|
77
|
-
Defaults.vpcClassB3Private3Public(2, Region.US_EAST_1),
|
|
78
|
-
Defaults.vpcClassB3Private3Public(3, Region.EU_WEST_1),
|
|
79
|
-
],
|
|
86
|
+
...
|
|
80
87
|
},
|
|
81
88
|
|
|
82
89
|
...AS MANY ACCOUNTS AS DESIRED...
|
|
83
|
-
|
|
84
90
|
]
|
|
85
91
|
},
|
|
86
92
|
},
|
|
87
93
|
...
|
|
88
|
-
|
|
94
|
+
},
|
|
95
|
+
network: {
|
|
96
|
+
nats: [
|
|
97
|
+
{
|
|
98
|
+
name: "development-eu-west-1-internet-access",
|
|
99
|
+
location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'public', 'public-1'),
|
|
100
|
+
allowAccessFrom: [
|
|
101
|
+
new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private')
|
|
102
|
+
],
|
|
103
|
+
type: {
|
|
104
|
+
gateway: {
|
|
105
|
+
eip: ... //Optional
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
bastionHosts: [
|
|
111
|
+
{
|
|
112
|
+
name: 'default',
|
|
113
|
+
location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private', 'private-1'),
|
|
114
|
+
instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MICRO),
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
89
118
|
});
|
|
90
119
|
```
|
|
91
120
|
|
|
@@ -107,17 +136,28 @@ The example below shows a simple DLZ setup with two accounts, one for developmen
|
|
|
107
136
|
two non-overlapping VPCs in two regions in each account.
|
|
108
137
|
|
|
109
138
|
```python
|
|
110
|
-
#!/usr/bin/env python3
|
|
111
139
|
import aws_cdk as cdk
|
|
112
140
|
import aws_data_landing_zone as dlz
|
|
113
141
|
|
|
114
142
|
app = cdk.App()
|
|
115
143
|
dlz.DataLandingZone(app,
|
|
116
|
-
|
|
144
|
+
...
|
|
117
145
|
regions=dlz.DlzRegions(
|
|
118
146
|
global_=dlz.Region.EU_WEST_1,
|
|
119
147
|
regional=[dlz.Region.US_EAST_1],
|
|
120
148
|
),
|
|
149
|
+
budgets=[
|
|
150
|
+
*dlz.Defaults.budgets(
|
|
151
|
+
100,
|
|
152
|
+
20,
|
|
153
|
+
slack=slack_budget_notifications,
|
|
154
|
+
emails=["you@org.com"],
|
|
155
|
+
),
|
|
156
|
+
],
|
|
157
|
+
deny_service_list=[
|
|
158
|
+
*dlz.Defaults.deny_service_list(),
|
|
159
|
+
"ecs:*"
|
|
160
|
+
],
|
|
121
161
|
organization=dlz.DLzOrganization(
|
|
122
162
|
organization_id='o-0f5h921gk9',
|
|
123
163
|
root=dlz.RootOptions(
|
|
@@ -133,24 +173,50 @@ dlz.DataLandingZone(app,
|
|
|
133
173
|
name='development',
|
|
134
174
|
account_id='123456789012',
|
|
135
175
|
type=dlz.DlzAccountType.DEVELOP,
|
|
136
|
-
vpcs
|
|
137
|
-
dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.
|
|
138
|
-
dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.
|
|
176
|
+
vpcs: [
|
|
177
|
+
dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.EU_WEST_1), # CIDR 10.0.0./19
|
|
178
|
+
dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.US_EAST_1), # CIDR 10.1.0./19
|
|
139
179
|
]
|
|
140
180
|
),
|
|
141
181
|
dlz.DLzAccount(
|
|
142
182
|
name='production',
|
|
143
183
|
account_id='123456789012',
|
|
144
184
|
type=dlz.DlzAccountType.PRODUCTION,
|
|
145
|
-
vpcs=[
|
|
146
|
-
dlz.Defaults.vpc_class_b3_private3_public(2, dlz.Region.US_EAST_1),
|
|
147
|
-
dlz.Defaults.vpc_class_b3_private3_public(3, dlz.Region.EU_WEST_1),
|
|
148
|
-
]
|
|
149
185
|
),
|
|
150
186
|
],
|
|
151
187
|
),
|
|
152
188
|
)
|
|
153
189
|
),
|
|
190
|
+
network={
|
|
191
|
+
"nats": [
|
|
192
|
+
{
|
|
193
|
+
"name": "development-eu-west-1-internet-access",
|
|
194
|
+
"location": NetworkAddress(
|
|
195
|
+
"development", str(Region.EU_WEST_1), "default", "public", "public-1",
|
|
196
|
+
),
|
|
197
|
+
"allow_access_from": [
|
|
198
|
+
NetworkAddress(
|
|
199
|
+
"development", str(Region.EU_WEST_1), "default", "private"
|
|
200
|
+
),
|
|
201
|
+
],
|
|
202
|
+
"type": {
|
|
203
|
+
"gateway": {
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
"bastion_hosts": [
|
|
209
|
+
{
|
|
210
|
+
"name": "default",
|
|
211
|
+
"location": NetworkAddress(
|
|
212
|
+
"development", str(Region.EU_WEST_1), "default", "public", "public-1",
|
|
213
|
+
),
|
|
214
|
+
"instance_type": ec2.InstanceType.of(
|
|
215
|
+
ec2.InstanceClass.T3, ec2.InstanceSize.MICRO
|
|
216
|
+
),
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
154
220
|
)
|
|
155
221
|
```
|
|
156
222
|
|
package/docs/astro.config.ts
CHANGED
|
@@ -22,6 +22,7 @@ export default defineConfig({
|
|
|
22
22
|
},
|
|
23
23
|
integrations: [starlight({
|
|
24
24
|
title: 'Data Landing Zone',
|
|
25
|
+
favicon: 'favicon.png',
|
|
25
26
|
components: {
|
|
26
27
|
Footer: './src/components/Footer.astro',
|
|
27
28
|
},
|
|
@@ -57,41 +58,35 @@ export default defineConfig({
|
|
|
57
58
|
{ label: 'Tagging', slug: 'components/account-management/tagging'},
|
|
58
59
|
{ label: 'Budgets', slug: 'components/account-management/budgets'},
|
|
59
60
|
// { label: 'Default Notifications', slug: 'components/account-management/budgets'}, //TODO Later
|
|
60
|
-
{ label: 'SOP - Initial Control Tower Setup', slug: 'components/account-management/sop-initial-control-tower-setup'},
|
|
61
|
-
{ label: 'SOP - Add Account', slug: 'components/account-management/sop-add-account'},
|
|
62
|
-
{ label: 'SOP - Account Setup', slug: 'components/account-management/sop-account-setup'},
|
|
63
61
|
]
|
|
64
62
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
// { label: 'Iam Identity Center', slug: 'introduction'},
|
|
93
|
-
// ]
|
|
94
|
-
// },
|
|
63
|
+
{
|
|
64
|
+
label: 'Networking',
|
|
65
|
+
items: [
|
|
66
|
+
{ label: 'VPCs', slug: 'components/networking/vpcs'},
|
|
67
|
+
{ label: 'NATs', slug: 'components/networking/nats'},
|
|
68
|
+
{ label: 'Bastion Hosts', slug: 'components/networking/bastion-hosts'},
|
|
69
|
+
{ label: 'VPC Peering', slug: 'components/networking/vpc-peering'},
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Security',
|
|
74
|
+
items: [
|
|
75
|
+
{ label: 'SecurityHub', slug: 'components/security/security-hub'},
|
|
76
|
+
{ label: 'Control Tower Controls', slug: 'components/security/control-tower-controls'},
|
|
77
|
+
{ label: 'Service Deny Lists', slug: 'components/security/service-deny-list'}, // Change to SCPs when we support them externally and make the deny list a subheading
|
|
78
|
+
{ label: 'IAM Permission Boundary', slug: 'components/security/iam-permission-boundary'},
|
|
79
|
+
// { label: 'AWS Config', slug: 'introduction'},
|
|
80
|
+
// { label: 'AWS Guard Duty', slug: 'introduction'},
|
|
81
|
+
// { label: 'AWS Macie', slug: 'introduction'},
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Identity',
|
|
86
|
+
items: [
|
|
87
|
+
{ label: 'Iam Identity Center', slug: 'components/identity/iam-identity-center'},
|
|
88
|
+
]
|
|
89
|
+
},
|
|
95
90
|
{
|
|
96
91
|
label: 'Data Services',
|
|
97
92
|
items: [
|
|
@@ -109,17 +104,33 @@ export default defineConfig({
|
|
|
109
104
|
}
|
|
110
105
|
],
|
|
111
106
|
},
|
|
107
|
+
{
|
|
108
|
+
label: 'Integration',
|
|
109
|
+
items: [
|
|
110
|
+
{ label: 'Exported SSM Parameters', slug: 'reference/integration/exported-ssm-parameters'},
|
|
111
|
+
{ label: 'CDK Client', slug: 'reference/integration/cdk-client'},
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: 'SOPs',
|
|
116
|
+
items: [
|
|
117
|
+
{ label: 'Initial Control Tower Setup', slug: 'sop/initial-control-tower-setup'},
|
|
118
|
+
{ label: 'Add Account', slug: 'sop/add-account'},
|
|
119
|
+
{ label: 'Account Setup', slug: 'sop/account-setup'},
|
|
120
|
+
{ label: 'IAM Identity Center', slug: 'sop/iam-identity-center'},
|
|
121
|
+
]
|
|
122
|
+
},
|
|
112
123
|
{
|
|
113
124
|
label: 'Reference',
|
|
114
125
|
items: [
|
|
115
126
|
// TODO: Complete docs
|
|
116
127
|
{ label: 'API', slug: 'reference/api'},
|
|
117
128
|
{ label: 'Defaults', slug: 'reference/defaults'},
|
|
118
|
-
// { label: 'Config sharing', slug: 'introduction'},
|
|
119
129
|
{ label: 'Scripts & commands', slug: 'reference/scripts-commands' },
|
|
130
|
+
{ label: 'Extending and Escape Hatches', slug: 'reference/extending-and-escape-hatches'},
|
|
120
131
|
{ label: 'Lake Formation TBAC strategy', slug: 'reference/lake-formation-tbac-recommended-strategy' },
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
{ label: 'Network Address', slug: 'reference/network-address'},
|
|
133
|
+
// { label: 'Roadmap', slug: 'introduction'},
|
|
123
134
|
]
|
|
124
135
|
},
|
|
125
136
|
|
|
Binary file
|
|
@@ -35,7 +35,7 @@ Each account is classified as one of the following types:
|
|
|
35
35
|
- `DlzAccountType.DEVELOP` - Accounts with fewer security restrictions, designed to enhance the developer experience.
|
|
36
36
|
- `DlzAccountType.PRODUCTION` - Accounts requiring tight security measures, used for hosting production workloads.
|
|
37
37
|
|
|
38
|
-
To begin, follow the [SOP - Initial Control Tower Setup](sop
|
|
38
|
+
To begin, follow the [SOP - Initial Control Tower Setup](/sop/initial-control-tower-setup) guide to enable Control
|
|
39
39
|
Tower, configure the AWS Organization, and create the required OUs. The final step,
|
|
40
40
|
[Gather the required information for DLZ](sop-initial-control-tower-setup#gather-the-required-information-for-dlz),
|
|
41
41
|
provides instructions for identifying and copying the necessary Organization ID, OU IDs, and Account IDs.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IAM Identity Center
|
|
3
|
+
description: IAM Identity Center
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
AWS IAM Identity Center (formerly AWS Single Sign-On) is a service that simplifies access management by enabling
|
|
8
|
+
centralized user sign-in and permissions for AWS accounts and applications. It integrates with external identity
|
|
9
|
+
providers (IdPs) or the internal Identity Center directory to manage users and authentication. This provides a unified
|
|
10
|
+
way to assign and enforce access permissions.
|
|
11
|
+
|
|
12
|
+
The Data Landing Zone does not create an IAM Identity Center instance but integrates with an existing one. Once the
|
|
13
|
+
required IDs are provided to the DLZ construct, it manages users, permissions, and thier account assignment
|
|
14
|
+
within the IAM Identity Center.
|
|
15
|
+
|
|
16
|
+
Refer to the [SOP - IAM Identity Center Setup](/sop/iam-identity-center) for detailed instructions on setting up IAM
|
|
17
|
+
Identity Center and providing the necessary IDs to the DLZ configuration.
|
|
18
|
+
|
|
19
|
+
:::note
|
|
20
|
+
The email address must be used as the username. If an external IdP is used, the email address must match the one in the IdP.
|
|
21
|
+
:::
|
|
22
|
+
|
|
23
|
+
Users can be added to access groups, which are assigned permission sets. Permission sets can be created from managed
|
|
24
|
+
policies or inline policies. Access groups support wildcards for account names, making it easy to assign permissions
|
|
25
|
+
across multiple accounts.
|
|
26
|
+
|
|
27
|
+
The example below assigns the `AdministratorAccess` permission set (created by
|
|
28
|
+
`...Defaults.iamIdentityCenterPermissionSets()`) to the user `you@org.com` in all accounts, as specified by the wildcard
|
|
29
|
+
`*`.
|
|
30
|
+
|
|
31
|
+
<DualCode>
|
|
32
|
+
<Fragment slot="ts">
|
|
33
|
+
```ts
|
|
34
|
+
import {App} from 'aws-cdk-lib';
|
|
35
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
36
|
+
|
|
37
|
+
const app = new App();
|
|
38
|
+
const dlz = new DataLandingZone(app, {
|
|
39
|
+
iamIdentityCenter: {
|
|
40
|
+
arn: 'IdentityCenterARN',
|
|
41
|
+
id: 'IdentityCenterID',
|
|
42
|
+
storeId: 'StoreID',
|
|
43
|
+
users: [
|
|
44
|
+
{
|
|
45
|
+
userName: 'you@org.com',
|
|
46
|
+
name: 'Name',
|
|
47
|
+
surname: 'LastName',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
permissionSets: [
|
|
51
|
+
// Provides the AWS managed policy `AdministratorAccess` and `ReadOnlyAccess` as permission sets
|
|
52
|
+
...Defaults.iamIdentityCenterPermissionSets(),
|
|
53
|
+
// Create custom permission sets from managed policies
|
|
54
|
+
{
|
|
55
|
+
name: 'power-user-permission-set',
|
|
56
|
+
managedPolicyArns: ['arn:aws:iam::aws:policy/PowerUserAccess']
|
|
57
|
+
},
|
|
58
|
+
// Create a custom permission sets from inline policies
|
|
59
|
+
{
|
|
60
|
+
name: 's3-only-access',
|
|
61
|
+
inlinePolicyStatement: new iam.PolicyStatement({
|
|
62
|
+
actions: ['s3:*'],
|
|
63
|
+
resources: ['*'],
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
accessGroups: [
|
|
68
|
+
{
|
|
69
|
+
name: 'admin-access-group',
|
|
70
|
+
accountNames: ['*'], // All accounts
|
|
71
|
+
// accountNames: ['project-1-*'], // All accounts starting with `project-1-`
|
|
72
|
+
// accountNames: ['root', 'development', 'production'], // Specific accounts
|
|
73
|
+
userNames: [
|
|
74
|
+
'you@org.com',
|
|
75
|
+
],
|
|
76
|
+
permissionSetName: 'AdministratorAccess',
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
````
|
|
82
|
+
|
|
83
|
+
</Fragment>
|
|
84
|
+
<Fragment slot="python">
|
|
85
|
+
```python
|
|
86
|
+
import aws_cdk as cdk
|
|
87
|
+
import aws_data_landing_zone as dlz
|
|
88
|
+
|
|
89
|
+
app = cdk.App()
|
|
90
|
+
dlz.DataLandingZone(app,
|
|
91
|
+
...
|
|
92
|
+
organization=dlz.DLzOrganization(
|
|
93
|
+
iam_identity_center={
|
|
94
|
+
"arn": "IdentityCenterARN",
|
|
95
|
+
"id": "IdentityCenterID",
|
|
96
|
+
"store_id": "StoreID",
|
|
97
|
+
"users": [
|
|
98
|
+
{
|
|
99
|
+
"user_name": "you@org.com",
|
|
100
|
+
"name": "Name",
|
|
101
|
+
"surname": "LastName",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
"permission_sets": [
|
|
105
|
+
# Provides the AWS managed policy `AdministratorAccess` and `ReadOnlyAccess` as permission sets
|
|
106
|
+
*Defaults.iam_identity_center_permission_sets(),
|
|
107
|
+
# Create custom permission sets from managed policies
|
|
108
|
+
{
|
|
109
|
+
name: 'power-user-permission-set',
|
|
110
|
+
managed_policy_arns: ['arn:aws:iam::aws:policy/PowerUserAccess']
|
|
111
|
+
},
|
|
112
|
+
# Create a custom permission sets from inline policies
|
|
113
|
+
{
|
|
114
|
+
name: 's3-only-access',
|
|
115
|
+
inline_policy_statement: {
|
|
116
|
+
actions: ['s3:*'],
|
|
117
|
+
resources: ['*'],
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"access_groups": [
|
|
122
|
+
{
|
|
123
|
+
"name": "admin-access-group",
|
|
124
|
+
"account_names": ["*"], # All accounts
|
|
125
|
+
# accountNames: ['project-1-*'], # All accounts starting with `project-1-`
|
|
126
|
+
# accountNames: ['root', 'development', 'production'], # Specific accounts
|
|
127
|
+
"user_names": ["you@org.com"],
|
|
128
|
+
"permission_set_name": "AdministratorAccess",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
),
|
|
133
|
+
)
|
|
134
|
+
````
|
|
135
|
+
</Fragment>
|
|
136
|
+
</DualCode>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## Defaults
|
|
142
|
+
|
|
143
|
+
The `Defaults.iamIdentityCenterPermissionSets` function creates two permission sets:
|
|
144
|
+
- `AdministratorAccess`: Using the AWS managed policy `AdministratorAccess`
|
|
145
|
+
- `ReadOnlyAccess`: Using the AWS managed policy `ReadOnlyAccess`
|
|
146
|
+
|
|
147
|
+
## API References
|
|
148
|
+
- [IamIdentityCenterProps](/reference/api/#aws-data-landing-zone.IamIdentityCenterProps)
|