@cfnutil/put-object-lambda

CloudFormation custom resource handler to put an object in a bucket.

Usage no npm install needed!

<script type="module">
  import cfnutilPutObjectLambda from 'https://cdn.skypack.dev/@cfnutil/put-object-lambda';
</script>

README

@cfn-util/put-object-lambda

CloudFormation custom resource handler to put an object in a bucket.

Resource Properties

interface PutObjectProps {
  Target: S3ObjectRef;
  Contents?: unknown;
  Metadata?: Metadata;
  Replacements?: TextReplacement[];
  Source?: S3ObjectRef;
}

interface S3ObjectRef {
  S3Bucket: string;
  S3Key: string;
  S3ObjectVersion?: string;
}

interface TextReplacement {
  Regex?: boolean;
  Replace: string;
  Search: string;
}