Terraformのnull_resourceではawsプロバイダで指定しているprofileが使用されない。
例えばECRにPushするときのクレデンシャルを取得するget-login-passwordは
aws ecr get-login-password --profile=production | docker login ...
といった感じにprofileを明示してあげる必要がある。
地味にハマりポイントなので注意。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 1 year has passed since last update.
Terraformのnull_resourceではawsプロバイダで指定しているprofileが使用されない。
例えばECRにPushするときのクレデンシャルを取得するget-login-passwordは
aws ecr get-login-password --profile=production | docker login ...
といった感じにprofileを明示してあげる必要がある。
地味にハマりポイントなので注意。
Register as a new user and use Qiita more conveniently
Go to list of users who liked