FROM amazon/aws-cli CMD ["bash", "-c", "aws ssm get-parameters --names my_param_name --region us-west-2 --query Parameters[0].Value"]
在构建此容器时,您可以在Fargate任务的执行角色或EC2实例配置中添加SSM访问权限策略,以便Fargate任务可以访问参数存储中的参数值。
上一篇:AWSFargateWindows容器启动失败,显示“Thecontaineroperatingsystemdoesnotmatchthehostoperatingsystem”。
下一篇:AWSFargate无法拉取容器错误