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
demandé il y a un an364 vues
1 réponse
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
EXPERT
Kallu
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions