Is it possible to specify a log folder within S3 LoggingConfiguration using CloudFormation?

0

I am trying to create an S3 bucket using CloudFormation, but it does not appear possible to log to a specific folder unless performed through the portal. When appending the folder to the bucket name in the DestinationBucketName property an error is thrown while creating the stack. Only the bucket name works, which means the logs will be created in the root folder.

Tom
posta un anno fa364 visualizzazioni
1 Risposta
0

Yes, you can. "Folder" is set in LogFilePrefix, not as a part of DestinationBucketName.

  DestinationBucketName: String
  LogFilePrefix: String

See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfig.html

profile picture
ESPERTO
Kallu
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande