Skip to content
v2.275.0

EnvironmentFileConfig Struct ​

Configuration for the environment file.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const environmentFileConfig: ecs.EnvironmentFileConfig = {
  fileType: ecs.EnvironmentFileType.S3,
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

    // the properties below are optional
    objectVersion: 'objectVersion',
  },
};

Properties ​

The type of environment file.
s3LocationLocations3_locationLocations3LocationLocationS3LocationLocationS3LocationLocationrequired#
The location of the environment file in S3.