Does CloudFormation Support S3 Glacier Vault

0

I want to create an Amazon S3 Glacier Vault using CloudFormation template, but I couldn't find the resource in CloudFormation User Guide. Does CloudFormation not support S3 Glacier Vault and I have to create one manually via AWS Console or AWS CLI?

profile picture
HS
已提問 8 個月前檢視次數 220 次
2 個答案
0
已接受的答案

Hi,

You can find the list of CloudFormation supported resources here -> https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html

I couldn't find the Amazon S3 Glacier Vault as the supported resources.

There are other ways you can programmatically create the AWS resources. In your case to create a Amazon S3 Glacier vault you can utilize AWS SDK and write a Lambda function to create the resources.

Here is an example code : https://docs.aws.amazon.com/code-library/latest/ug/glacier_example_glacier_CreateVault_section.html

You call create the Lambda Function using AWS CloudFormation and other resources for your application at one place. I have followed similar approach (different AWS resource) sometime back to achieve this. Sharing the blog and code will help you design your solution utilizing Amazon S3 Glacier vault SDK.

Blog: https://www.awsyarn.com/amazon-connect/
Code: https://github.com/avasisht/amazon-connect/tree/main/ac-base

I hope this will help you with your query.

Thanks,
Abhishek

profile picture
已回答 8 個月前
  • Thanks for your assistance. I think I will try different approach to create my Vault programmatically.

0

Looks like S3 Glacier does not support CloudFormation. Have to use Console, CLI, or SDK. Or you can create a custom resource in CloudFormation.

profile pictureAWS
專家
kentrad
已回答 8 個月前
  • Thanks for your assistance. I think I will try different approach to create my Vault programmatically.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南