-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1051 from bugathagit/ipv6
IPv6
- Loading branch information
Showing
17 changed files
with
617 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
#!/usr/bin/env node | ||
import * as cdk from 'aws-cdk-lib'; | ||
import BlueprintConstruct from '../examples/blueprint-construct'; | ||
import BlueprintIPV6Construct from '../examples/blueprint-ipv6-construct'; | ||
import BlueprintIPv4Construct from "../examples/blueprint-ipv4-construct"; | ||
|
||
const app = new cdk.App(); | ||
|
||
const account = process.env.CDK_DEFAULT_ACCOUNT; | ||
const region = process.env.CDK_DEFAULT_REGION; | ||
const props = { env: { account, region } }; | ||
let props = { env: { account, region } }; | ||
new BlueprintIPv4Construct(app, props); | ||
|
||
new BlueprintConstruct(app, props); | ||
// Deploying IPV6 cluster in us-east-2 region. Assuming IPV4 cluster will be deployed to another region. | ||
props = { env: { account, region: "us-east-2" } }; | ||
// Create ipv6 cluster | ||
new BlueprintIPV6Construct(app, props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from "constructs"; | ||
import * as blueprints from '../../lib'; | ||
import BlueprintConstruct from "../blueprint-construct"; | ||
|
||
const blueprintID = 'blueprint-construct-dev'; | ||
|
||
export interface BlueprintConstructProps { | ||
/** | ||
* Id | ||
*/ | ||
id: string | ||
} | ||
|
||
export default class BlueprintIPv4Construct extends BlueprintConstruct { | ||
constructor(scope: Construct, props: cdk.StackProps) { | ||
super(scope, props); | ||
|
||
blueprints.EksBlueprint.builder() | ||
.addOns(...this.addOns) | ||
.resourceProvider(blueprints.GlobalResources.Vpc, new blueprints.VpcProvider(undefined, { | ||
primaryCidr: "10.2.0.0/16", | ||
secondaryCidr: "100.64.0.0/16", | ||
secondarySubnetCidrs: ["100.64.0.0/24","100.64.1.0/24","100.64.2.0/24"] | ||
})) | ||
.resourceProvider("node-role", this.nodeRole) | ||
.resourceProvider('apache-airflow-s3-bucket-provider', this.apacheAirflowS3Bucket) | ||
.resourceProvider('apache-airflow-efs-provider', this.apacheAirflowEfs) | ||
.clusterProvider(this.clusterProvider) | ||
.resourceProvider(this.ampWorkspaceName, new blueprints.CreateAmpProvider(this.ampWorkspaceName, this.ampWorkspaceName)) | ||
.teams(...this.teams, new blueprints.EmrEksTeam(this.dataTeam), new blueprints.BatchEksTeam(this.batchTeam)) | ||
.enableControlPlaneLogTypes(blueprints.ControlPlaneLogType.API) | ||
.build(scope, blueprintID, props); | ||
|
||
} | ||
} | ||
|
Oops, something went wrong.