final release creation expects s3 access key, despite env_or_profile being set
When attempting to create a final release, looks like the cli doesn't allow it through unless s3.access_key and secret are present.
https://github.com/cloudfoundry/bosh/blob/master/bosh_cli/lib/cli/release.rb#L76
This is an issue for those using iam profiles (credentials_source: env_or_profile).
Other tasks (for example sync blobs, are able to leverage credentials from the profile).
@aristotelesneto out of curiosity, does providing a fake access_key and secret and specifying env_or_profile credentials source fix it?
Doesn't I'm afraid - fails here: https://github.com/cloudfoundry/bosh/blob/93a2522b3a6a58cc3d24f6ea10a9dba0a9a421bb/bosh-registry/lib/bosh/registry/instance_manager/aws.rb#L67
are you sure? thats registry code which is not used by the cli in the finalize release path.
Sent from my iPhone
On Jun 6, 2016, at 2:24 PM, Aristoteles Neto [email protected] wrote:
Doesn't I'm afraid - fails here: https://github.com/cloudfoundry/bosh/blob/93a2522b3a6a58cc3d24f6ea10a9dba0a9a421bb/bosh-registry/lib/bosh/registry/instance_manager/aws.rb#L67
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Sorry wrong file (i just did a quick search on github for the env_of_profile and picked the first error) - fails with a similar error. IIRC it was on the blobstore, so here: https://github.com/cloudfoundry/bosh/blob/master/blobstore_client/lib/blobstore_client/s3_blobstore_client.rb#L172
Closing - the new CLI supports the credentials_source setting. The ruby CLI is now frozen, so we won't be making further changes. Feel free to give the new CLI a try and leave feedback/issues in that repo. Thanks, @aristotelesneto!