# @jttc/aws-organizations

> [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) ![npm](https://img.shields.io/npm/v/%40jttc%2Faws-organizations)

Latest version **0.1.0** (published 2025-09-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @jttc/aws-organizations
pnpm add @jttc/aws-organizations
yarn add @jttc/aws-organizations
bun add @jttc/aws-organizations
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2025-09-01 |
| First published | 2024-04-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 388.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jump to the Cloud |
| Maintainers | jumptothecloud, antonio.marquez |
| Keywords | aws, cdk, organizations |

## Links

- npm: https://www.npmjs.com/package/@jttc/aws-organizations
- Repository: https://github.com/JumpToTheCloud/aws-organizations
- Homepage: https://github.com/JumpToTheCloud/aws-organizations#readme
- Issues: https://github.com/JumpToTheCloud/aws-organizations/issues
- npm.io page: https://npm.io/package/@jttc/aws-organizations

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2025-09-01
- 0.0.1-beta.1 — 2025-02-12
- 0.0.1-beta.0 — 2024-05-07
- 0.0.1-alpha.4 — 2024-05-06
- 0.0.1-alpha.3 — 2024-05-06
- 0.0.1-alpha.2 — 2024-05-04
- 0.0.1-alpha.1 — 2024-04-25
- 0.0.1-alpha.0 — 2024-04-25
- 0.0.0-alpha.0 — 2024-04-01
- 0.0.0 — 2024-04-01

## README

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
![npm](https://img.shields.io/npm/v/%40jttc%2Faws-organizations)

[![View on Construct Hub](https://constructs.dev/badge?package=%40jttc%2Faws-organizations)](https://constructs.dev/packages/@jttc/aws-organizations)

# AWS Organizations Construct Library

# AWS Organization

## Getting started

### Installation

Install the library in your project:

```shell
npm install @jttc/aws-organization
```
```shell
yarn add @jttc/aws-organization
```

### Usage

#### New Organization

To create a new AWS Organization, use the Organization Construct provided. By default, it creates an organization with all FeatureSet.

```
import { Construct } from 'constructs';
import { Organization } from '@jttc/aws-organizations';

export class OrganizationStack extends Construct {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    new Organization(this, 'Organization');
  }
}
```

#### New Organization Unit from root organization

To create a new AWS Organization Unit, use the OrganizationUnit Construct provided.

```
import { Construct } from 'constructs';
import { Organization, OrganizationUnit } from '@jttc/aws-organizations';

export class OrganizationStack extends Construct {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    const organization = new Organization(this, 'Organization');

    new OrganizationUnit(this, 'WorkloadsOrganizationUnit', {
      organizationUnitName: 'workloads',
      parent: organization,
    });
  }
}

```


#### Create new Account

To create a new Account, use the Account Construct provided.

```
import { Construct } from 'constructs';
import {
  Organization,
  OrganizationUnit,
  Account,
} from '@jttc/aws-organizations';

export class OrganizationStack extends Construct {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    const organization = new Organization(this, 'Organization');

    const workloadOrganizationUnit = new OrganizationUnit(
      this,
      'WorkloadsOrganizationUnit',
      {
        organizationUnitName: 'workloads',
        parent: organization,
      }
    );

    new Account(this, 'ProdAccount', {
      accountName: 'prodc-account',
      email: 'prod@example.com'
      parent: workloadOrganizationUnit,
    });
  }
}
```

#### Service Control Policy

Attached a Service Control Policy to an Organization Unit or an Account

```
import { Construct } from 'constructs';
import {
  Organization,
  OrganizationUnit,
  Account,
  ServiceControlPolicy
} from '@jttc/aws-organizations';

export class OrganizationStack extends Construct {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    const organization = new Organization(this, 'Organization');

    const workloadOrganizationUnit = new OrganizationUnit(
      this,
      'WorkloadsOrganizationUnit',
      {
        organizationUnitName: 'workloads',
        parent: organization,
      }
    );

    new Account(this, 'ProdAccount', {
      accountName: 'prodc-account',
      email: 'prod@example.com'
      parent: workloadOrganizationUnit,
    });

    const policy = new PolicyStatement({
      effect: Effect.ALLOW,
      actions: ['s3:*'],
      resources: ['*'],
    });
    
    new ServiceControlPolicy(stack, 'ServiceControlPolicy', {
      name: 'test-policy',
      description: 'test policy',
      statements: [policy],
      targetIds: [workloadOrganizationUnit.organizationUnitId],
    });
  }
}
```

---
_Source: https://npm.io/package/@jttc/aws-organizations · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
