Copilot-cli: copilot job environment

Created on 4 Dec 2020  路  4Comments  路  Source: aws/copilot-cli

It looks like schedule is required when we have environments on the manifest.

We have to add
on:
schedule
on the environments too.
example:
environments:
test:
on:
schedule: "expersion"

if not added, it will generate an error schedule required.

typbug typrequest

Most helpful comment

Apologies for the delay on this! It completely dropped off my radar, we sent a fix for it in #2044

All 4 comments

Heya @carlcontinusys 馃憢

Thanks for reaching out to us!

Are you saying that when you try to write environment overrides (https://aws.github.io/copilot-cli/docs/manifest/scheduled-job/#environments) for the "test" environment you have to duplicate again the "on" section?

Is this the current behavior?

on: 
   schedule: @daily 
environments:
  test:
     on: 
        schedule: @daily 
     cpu: 512

but what you want is just:

on: 
   schedule: @daily 
environments:
  test:
     cpu: 512

Thanks!

Yes

Apologies for the delay on this! It completely dropped off my radar, we sent a fix for it in #2044

@efekarakus should this issue be closed since #2043 was closed with #2044 and #2043 is a duplicate of this issue?

UPDATE ignore! i was looking at a stale webUI. issue already closed. disregard!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaybauson picture jaybauson  路  3Comments

aidansteele picture aidansteele  路  3Comments

iamhopaul123 picture iamhopaul123  路  3Comments

kohidave picture kohidave  路  4Comments

srrengar picture srrengar  路  3Comments