<@U01EK4V7BM4> just to confirm the syntax for the ...
# deployment-ecs
t
@jordan just to confirm the syntax for the changes here… As an example
Copy code
run_launcher:
  module: dagster_aws.ecs
  class: "EcsRunLauncher"
  config:
    secrets:
      - name: "SLACK_TOKEN"
        valueFrom: "arn:aws:secretsmanager:eu-west-1:XXXXXXXX:secret:dagster/slack-a8jmKZ:SLACK_TOKEN::"
Because when I build this on ECS I’m faced with some sort of yaml error
Copy code
2022-03-21T08:41:26.634+00:00	raise ScannerError(None, None,

2022-03-21T08:41:26.634+00:00

Copy
yaml.scanner.ScannerError: mapping values are not allowed here
yaml.scanner.ScannerError: mapping values are not allowed here

2022-03-21T08:41:26.634+00:00

Copy
  in "/opt/dagster/dagster_home/dagster.yaml", line 16, column 106
in "/opt/dagster/dagster_home/dagster.yaml", line 16, column 106
on my cloudwatch
actually I sorted it by moving it one indent space behind i.e.
Copy code
run_launcher:
  module: dagster_aws.ecs
  class: "EcsRunLauncher"
  config:
    secrets:
    - name: "SLACK_TOKEN"
      valueFrom: "arn:aws:secretsmanager:eu-west-1:XXXXXXXX:secret:dagster/slack-a8jmKZ:SLACK_TOKEN::"
something to note
j
yaml blob sad i’ll put a fix in for the docs. thanks for raising this!
1
I’m having trouble reproducing this - both indented and unindented are loading for me. Are you sure it was that particular change that fixed it? Do you have a more complete stack-trace? what versions of dagster, PyYAML, and python are you using?
actually i can reproduce it if i remove the quotes from the secret arn which is also inaccurate in the docs but looks like it’s already been corrected in your original post i’ll update the docs with that fix at least
t
Yes it might have initially been without quotes when the error hit. I had written the post ^^ after I was playing around with it. Yaml pains
😞
Could be due to the characters of colons ending in the arn? (Assume yaml reads that as a mapping operator?)
j
I’m pretty sure that’s exactly what’s happening
Thanks for surfacing this!
t
No probs 👌