Skip to content

Lifecycle Policy: how to modify time of day?

0

The documentation says to open the Lifecycle Manager, select the policy, and then update the schedule...

Update the Schedule In the policy settings, locate the schedule section. Here, you can modify the time of day when the policy runs. 

But when I go to modify my policy, the Schedule Details section contains only "Creation frequency" and "Retention period." There's nothing there about time of day.

asked 10 months ago133 views
3 Answers
0
Accepted Answer

I had created a "Default Policy" and what I should have created was a "Custom Policy."

It's basically the first thing one must choose while creating a policy in the EC2 Lifecycle Manager: "Select whether to use a custom or default policy" If one chooses default, no time of day option is available.

Cheers!

answered 10 months ago
EXPERT
reviewed 10 months ago
0

I apologize for the confusion, but it appears there may be a misunderstanding about the specific lifecycle policy you're referring to. The ability to modify the time of day for policy execution depends on the type of lifecycle policy and the service you're using.

For Amazon S3 lifecycle policies, you typically don't set a specific time of day for policy execution. These policies are applied based on object age or creation date, not a specific time.

However, if you're working with Amazon Data Lifecycle Manager (DLM) for EBS snapshots or AMIs, you can indeed specify a time of day for policy execution. In this case, when editing a policy:

  1. Go to the policy details
  2. Look for the "Schedules" section
  3. Within the schedule, there should be a "Create rule" or similar option
  4. Here, you can specify the "Times" parameter, which allows you to set the time of day for policy execution (e.g., "03:00" for 3 AM)

If you're only seeing "Creation frequency" and "Retention period" options, it's possible you're looking at a simplified view or a different type of lifecycle policy. The exact options available can vary depending on the specific AWS service and policy type you're working with.

If you need to set a specific time for policy execution and don't see the option, you may want to double-check that you're working with the correct type of lifecycle policy (e.g., DLM for EBS rather than S3), or consider reaching out to AWS support for clarification on your specific policy setup.
Sources
View and Edit S3 Lifecycle Policy | AWS re:Post
Amazon Data Lifecycle Manager examples using AWS CLI - AWS SDK Code Examples
Modify Amazon Data Lifecycle Manager policies - Amazon EBS

answered 10 months ago
EXPERT
reviewed 10 months ago
0

Yes, this is "Data Lifecycle Manager default policy for EBS snapshots."

answered 10 months 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.