当我使用 Pulumi 创建 S3 存储桶时,会在指定的存储桶名称中添加一个随机后缀。我怎样才能避免这种情况?
import * as aws from "@pulumi/aws";
// Create an AWS resource (S3 Bucket)
const bucket = new aws.s3.Bucket("my-bucket");
// Export the name of the bucket
export const bucketName = bucket.id;
Run Code Online (Sandbox Code Playgroud) pulumi ×1