cdktf-metaflow v0.0.7
API Reference
Constructs
Common
Initializer
import { Common } from 'cdktf-metaflow'
new Common(scope: Construct, id: string, options?: CommonOptions)
scope
Required
- Type:
constructs.Construct
id
Required
- Type:
string
options
Optional
Properties
appOutput
Required
- Type:
string
awsRegionsOutput
Required
- Type:
string
envOutput
Required
- Type:
string
tagsOutput
Required
- Type:
string
workspaceSuffixOutput
Required
- Type:
string
app
Required
- Type:
any
env
Required
- Type:
any
tags
Required
- Type:
any
Metaflow
Initializer
import { Metaflow } from 'cdktf-metaflow'
new Metaflow(scope: Construct, id: string, options: MetaflowOptions)
scope
Required
- Type:
constructs.Construct
id
Required
- Type:
string
options
Required
Properties
apiGatewayRestApiIdKeyIdOutput
Required
- Type:
string
datastoreS3BucketKmsKeyArnOutput
Required
- Type:
string
metadataSvcEcsTaskRoleArnOutput
Required
- Type:
string
metaflowApiGatewayRestApiIdOutput
Required
- Type:
string
metaflowBatchContainerImageOutput
Required
- Type:
string
metaflowBatchJobQueueOutput
Required
- Type:
string
metaflowDatastoreSysrootS3Output
Required
- Type:
string
metaflowDatatoolsS3RootOutput
Required
- Type:
string
metaflowEcsS3AccessIamRoleOutput
Required
- Type:
string
metaflowEventsSfnAccessIamRoleOutput
Required
- Type:
string
metaflowProfileJsonOutput
Required
- Type:
string
metaflowS3BucketArnOutput
Required
- Type:
string
metaflowS3BucketNameOutput
Required
- Type:
string
metaflowServiceInternalUrlOutput
Required
- Type:
string
metaflowServiceUrlOutput
Required
- Type:
string
metaflowSfnDynamoDbTableOutput
Required
- Type:
string
metaflowSfnIamRoleOutput
Required
- Type:
string
migrationFunctionArnOutput
Required
- Type:
string
enableStepFunctions
Required
- Type:
boolean
resourcePrefix
Required
- Type:
any
resourceSuffix
Required
- Type:
any
subnet1Id
Required
- Type:
string
subnet2Id
Required
- Type:
string
tags
Required
- Type: { key: string :
string
}
vpcCidrBlock
Required
- Type:
string
vpcId
Required
- Type:
string
accessListCidrBlocks
Optional
- Type:
string
[]
apiBasicAuth
Optional
- Type:
boolean
batchType
Optional
- Type:
string
computeEnvironmentDesiredVcpus
Optional
- Type:
number
computeEnvironmentInstanceTypes
Optional
- Type:
string
[]
computeEnvironmentMaxVcpus
Optional
- Type:
number
computeEnvironmentMinVcpus
Optional
- Type:
number
enableCustomBatchContainerRegistry
Optional
- Type:
boolean
iamPartition
Optional
- Type:
string
Structs
CommonOptions
Initializer
import { CommonOptions } from 'cdktf-metaflow'
const commonOptions: CommonOptions = { ... }
app
Optional
- Type:
any
- Default: metaflow
undefined.
env
Optional
- Type:
any
- Default: dev
undefined.
tags
Optional
- Type:
any
- Default: object Object
undefined.
MetaflowOptions
Initializer
import { MetaflowOptions } from 'cdktf-metaflow'
const metaflowOptions: MetaflowOptions = { ... }
enableStepFunctions
Required
- Type:
boolean
Provisions infrastructure for step functions if enabled.
subnet1Id
Required
- Type:
string
First subnet used for availability zone redundancy.
subnet2Id
Required
- Type:
string
Second subnet used for availability zone redundancy.
tags
Required
- Type: { key: string :
string
}
aws tags.
vpcCidrBlock
Required
- Type:
string
The VPC CIDR block that we'll access list on our Metadata Service API to allow all internal communications.
vpcId
Required
- Type:
string
The id of the single VPC we stood up for all Metaflow resources to exist in.
accessListCidrBlocks
Optional
- Type:
string
[]
List of CIDRs we want to grant access to our Metaflow Metadata Service.
Usually this is our VPN's CIDR blocks.
apiBasicAuth
Optional
- Type:
boolean
- Default: true
Enable basic auth for API Gateway?
(requires key export)
batchType
Optional
- Type:
string
- Default: ec2
AWS Batch Compute Type ('ec2', 'fargate').
computeEnvironmentDesiredVcpus
Optional
- Type:
number
- Default: 8
Desired Starting VCPUs for Batch Compute Environment 0-16 for EC2 Batch Compute Environment (ignored for Fargate).
computeEnvironmentInstanceTypes
Optional
- Type:
string
[] - Default: c4.large,c4.xlarge,c4.2xlarge,c4.4xlarge,c4.8xlarge
The instance types for the compute environment.
computeEnvironmentMaxVcpus
Optional
- Type:
number
- Default: 64
Maximum VCPUs for Batch Compute Environment 16-96.
computeEnvironmentMinVcpus
Optional
- Type:
number
- Default: 8
Minimum VCPUs for Batch Compute Environment 0-16 for EC2 Batch Compute Environment (ignored for Fargate).
enableCustomBatchContainerRegistry
Optional
- Type:
boolean
Provisions infrastructure for custom Amazon ECR container registry if enabled.
iamPartition
Optional
- Type:
string
- Default: aws
IAM Partition (Select aws-us-gov for AWS GovCloud, otherwise leave as is).
resourcePrefix
Optional
- Type:
any
- Default: metaflow
string prefix for all resources.
resourceSuffix
Optional
- Type:
any
string suffix for all resources.