FSX custom backup cloud formation template Failing to create stack

0

I am attempting to use the recommended cloud formation template to create a custom backup schedule for fsx.
I am following the documentation to use the recommended cloud formation template using these steps:
https://docs.aws.amazon.com/fsx/latest/WindowsGuide/custom-backup-schedule.html

The template if failing to create with error:
The following resource(s) failed to create: [BackupManager]. . Rollback requested by user.
16:36:59 UTC-0500 CREATE_FAILED AWS::Lambda::Function BackupManager Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: us-east-1. Please use this region to retry the request (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 4ddde0bd-41ea-11e9-81a0-9ff5109c54de)

Looks like it is failing because the cloud formation template is in us-east-2 but it is attempting to access a bucket in east-1.

How do I fix this? I do not see any settings in the cloud formation template to change the bucket to us-east-2.

Anyone have any advice?

BTS
질문됨 5년 전416회 조회
6개 답변
0

Thanks for bringing this to our attention. A fix to the template has been published that resolves this issue. Please launch a new CloudFormation stack using the updated version of the template - (https://s3.amazonaws.com/solution-references/fsx/backup/fsx-scheduled-backup.template). Let us know if this resolves your issue.

profile pictureAWS
답변함 5년 전
0

Thanks, I will try this out today!

BTS
답변함 5년 전
0

I was able to create a backup plan using the cloud formation template and setting the backup frequency to 1-hour intervals.

I would like to set to 30 min intervals. I tried changing the 6 to a 0.5 in the CRON schedule (shown below) and the cloud formation template errored out (so I set it to 1-hr instead and that was fine).

How would I get backups every 30 min?

# Schedule for creating backups (and purging expired)
CronSchedule:
Description: CRON schedule for backups (default every 6 hours)
Type: String
Default: "0 0/6 ** ** ? *"

BTS
답변함 5년 전
0

Hi BTS,

You can specify the following string for the CRON schedule to take backups every 30 minutes:
0/30 ** ** ** ? **

As described in the Amazon CloudWatch documentation page about Schedule Expressions for Rules (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html):

  • The CRON schedule string specifies values for six fields: Minutes, Hours, Day-of-month, Month, Day-of-week, and Year.
  • The / (forward slash) wildcard specifies increments. The 0/30 value for the Minutes field specifies every thirtieth minute, starting from the first minute of the hour.
    ** The ? (question mark) wildcard specifies one or another. You can't specify the Day-of-month and Day-of-week fields in the same cron expression. If you specify a value (or a **) in one of the fields, you must use a ? (question mark) in the other.

You can also see the Examples section of the page referenced above for more examples of schedule expressions.

Thank you,
Amazon FSx team

AWS
답변함 5년 전
0

Thanks

BTS
답변함 5년 전
0

The cloud formation template is working great now, thanks.

BTS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠