This programmatic approach offers an alternative to traditional methods, such as using the AWS CLI or the AWS Console, providing more flexibility and automation capabilities for managing AWS resources.
This lesson explores interacting with AWS programmatically using the AWS SDK to manage resources directly from application code.
import { S3Client, CreateBucketCommand } from "@aws-sdk/client-s3";
const client = new S3Client(config);
const input = {
Bucket: "my-new-bucket"
};
const command = new CreateBucketCommand(input);
const response = await client.send(command);
Was this page helpful?