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
asked 5 years ago397 views
6 Answers
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
answered 5 years ago
0

Thanks, I will try this out today!

BTS
answered 5 years ago
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
answered 5 years ago
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
answered 5 years ago
0

Thanks

BTS
answered 5 years ago
0

The cloud formation template is working great now, thanks.

BTS
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions