constructs icon indicating copy to clipboard operation
constructs copied to clipboard

expose the created bucket ARN

Open zilahir opened this issue 2 years ago • 1 comments

Is there a way to get access to the created S3 Bucket's RN somehow?

I would need it later in my CDK description.

const apiLambda = new PhpFpmFunction(this, `backend-${env}`, {
      handler: "public/index.php",
      code: packagePhpCode("../backend"),
      phpVersion: "8.2",
      timeout: Duration.seconds(30),
      environment: { // }
    });

this creates the s3 bucket automatically in the cloudformation stack, and i'd need a way to get it's ARN.

Any suggestion would be appreciated!

UPDATE: I guess if it's possible to provide a custom s3 bucket also created in the stack that would work too.

zilahir avatar Aug 20 '23 19:08 zilahir

What S3 bucket? I don't understand, it's a Lambda function, it's not deploying a S3 bucket 🤔

mnapoli avatar Aug 29 '23 16:08 mnapoli

@mnapoli Kudos for creating these CDK constructs, haven't tried it yet but a great initiative! I'd be eager/willing to contribute if only I had more knowledge about AWS and CDK ... :)

leob avatar Dec 29 '24 11:12 leob

@leob thank you!

mnapoli avatar Dec 30 '24 15:12 mnapoli