Another question: code in :thread:
# ask-community
b
Another question: code in 🧵
If I have some code like so:
Copy code
RUN_CONFIG = ECSRun(
    run_task_kwargs={
        "cluster": "prefect-cluster",
    },
    labels=['s3-flow-storage'],
    task_role_arn="arn:role1",
    execution_role_arn='arn:role2',
    # image='prefecthq/prefect:latest-python3.8',
    # memory=512,
    # cpu=256
    )
If this flow is being stored in S3 and in a separate repo to where my infra code lives, is there a way I can share the role arns between repos?? I was thinking of using
SSM
but I think the code wont be able to parse it on prefects side? Are there any best practices around this from you guys?
Hi @Kevin Kho, any suggestions here?
k
Oops sorry I missed this. What is SSM?
I suggest using Prefect’s new KV Store where you can store small pieces of information like this. See this and then you can just get the relevant ARN. What do you think of that?
b
SSM parameter store in AWS. For secrets ☺️
The KV store is 👌!
Thanks @Kevin Kho
k
Ah ok. Thanks for the info!
b
Does it matter that the KV will be gotten outside of a task?
It's required for the ECSRun command..
k
No KV works outside flows and tasks as long as you’re authenticated to Prefect
b
👍🏽
💥