-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.help wantedWe are asking the community to submit a PR to resolve this issue.We are asking the community to submit a PR to resolve this issue.
Description
I've got an environment working properly with boto 2.38 where all the following settings are required (obviously I could have done the stuff in the ~/.boto file each time programmatically instead):
~/.boto file that contains...
ca_certificates_file = /path/to/cert.pem
endpoints_path = /path/to/endpoints.json
[ec2]
use-sigv4 = true
[s3]
use-sigv4 = true
Then when I connect, I need a security token, so I do...
boto.ec2.connect_to_region('regionName', security_token='*')
I'm trying to figure out how to do the equivalent with the C++ SDK. Tackling these one at a time...
- ca_certificates_file: I may be just searching on the wrong stuff, but the only reference to CA certificates I can find is in the rds module. Is this supported in the C++ SDK currently for sqs, ec2, and s3?
- endpoints_path: Looking at
EC2Client::init()
, I see that it callsEC2Endpoint::ForRegion()
unlessconfig.endpointOverride
is populated. While the readme says not to alter the endpoint, it appears that just setting this string with what's in my endpoints.json for this service would do what I want (I do need to override the endpoint). Any reason this wouldn't work? - use-sigv4: This sets Signature Version 4 signing. In AWSAuthSigner, I see an
AWSAuthV4Signer
class. TheEC2Client
constructors appear to be using this... will I get Signature Version 4 signing by default then or is there anything else I need to do to enable this? - security_token: Rather than using the default credentials provider chain, it looks like I could construct
AWSCredentials
myself and pass this in right? - Is there an equivalent of a ~/.boto file for the C++ SDK to set some of these things? If not, doing this programmatically is no big deal.
Thanks for the help!
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.help wantedWe are asking the community to submit a PR to resolve this issue.We are asking the community to submit a PR to resolve this issue.