Can a CDK app be used to create an AWS S3 Glacier vault using TypeScript? The developer guide does not seem to mention TypeScript as an option: https://docs.aws.amazon.com/amazonglacier/latest/dev/creating-vaults.html
We can set up Intelligent Tiering for an AWS S3 bucket, but that may not be what I am looking for. I came across the JavaScript SDK guide for Creating a S3 Glacier vault, which details how to create the vault - exactly what I need. However, I am unsure if this can be implemented in a CDK TypeScript app.
In my attempt, I tried using the NPM package aws-sdk/client-glacier
. After installation, I created a new instance of the GlacierClient
class in the cdk.ts
file. Unfortunately, building the app proved to be challenging.
https://i.sstatic.net/Y7ukx.png
This is the content of my package.json
file:
{
"name": "cdk-app-2",
"version": "0.1.0",
"bin": {
"cdk-app-2": "bin/cdk-app-2.js"
},
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"test": "jest",
"cdk": "cdk"
},
"devDependencies": {
"@types/jest": "^27.5.2",
"@types/node": "10.17.27",
"@types/prettier": "2.6.0",
"aws-cdk": "2.50.0",
"jest": "^27.5.1",
"ts-jest": "^27.1.4",
"ts-node": "^10.9.1",
"typescript": "~3.9.7"
},
"dependencies": {
"@aws-sdk/client-glacier": "^3.204.0",
"aws-cdk-lib": "2.50.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
}
}