-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this plugin support cross account access? #133
Comments
Same issue here, similar config as @martinmicunda |
Apparently the js sdk doesn't read from an aws config file (such as Just adding your cross account configurations in the credentials file works as expected. It doesn't seem to be documented anywhere that this configuration is an option (even though it makes sense)... |
Thanks for tip @mikereinhold ;) |
@mikereinhold could you share your settings as I tried to add cross account configurations in the credentials file but I am still getting |
@martinmicunda - I am not using MFA on these cross account roles (yet), so maybe that is a problem, but this is what I'm doing: ~/.aws/credentials [admin]
aws_access_key_id = <access_key>
aws_secret_access_key = <secret key>
[profile_1]
role_arn = arn:aws:iam::redacted_account_1:role/CrossAccountAdminRole1
source_profile = admin
[profile_2]
role_arn = arn:aws:iam::redacted_account_2:role/CrossAccountAdminRole2
source_profile = admin_profile gulpfile.js var AWS = require('aws-sdk');
var publisher = awspublish.create({
region: 'region-id',
params: {
Bucket: '...'
},
credentials: new AWS.SharedIniFileCredentials({profile: 'profile_2'})
}); |
@mikereinhold yeah it might be MFA however all my roles have to use MFA... |
@martinmicunda I'm planning on turning on MFA, so this would be a blocking issue for me if MFA is indeed the cause... I'll update this if I have trouble when I turn it on... |
@mikereinhold the aws-auth-helper can help you with MFA it works for me.. |
Interesting - thanks |
@mikereinhold have you got |
Hi,
I try to publish my files to multiple accounts e.g. (dev, prod) however when I use this plugin I am getting
Access Denied
error. Does this plugin support assume role option to publish the files?gulpfile
config
The text was updated successfully, but these errors were encountered: