Comments (11)
I happen to be looking at this for another estimation so thought I'd add some details.
- This is referenced in the Go SDK here: https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/PresignURLAutoFill.java#L81
- The logic for how this should be implemented is in this SEP (however it doesn't reference EC2 in particular, given the Go SDK's implementation it should be similar or identical.)
from aws-sdk-kotlin.
Relates to https://github.com/awslabs/smithy-kotlin/issues/153
from aws-sdk-kotlin.
Another sample implementation from Java v2 SDK. Seems like intercept the HTTP request and use input shape fields to modify the DestinationRegion
and PresignedUrl
fields.
Estimate: 2 weeks (less if another presigning task has been completed and can be leveraged for reuse)
from aws-sdk-kotlin.
When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a pre-signed URL. This parameter is optional for unencrypted snapshots. Query requests. The PresignedUrl should use the snapshot source endpoint, the
CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html\">Authenticating Requests: Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.
from aws-sdk-kotlin.
For some unknown reason I'm able to call CopyDBSnapshot
with an encrypted snapshot id and without a presigned URL and it still works. As such, it's unclear to me if this presigned url is actually needed here. Looking for clarification from the EC2 team.
from aws-sdk-kotlin.
Operations involving presigned URLs:
- CopySnapshot (populate a modeled presigned URL request param)
from aws-sdk-kotlin.
Because my experience does not track to the service documentation (able to perform an encrypted db snapshot copy without specifying a presgigned url) I cannot test that this client works as expected. Looking around for ec2 help to figure out what the presigned url is required for.
from aws-sdk-kotlin.
No luck in slack, filed an issue against EC2 EBS CTI SIM: P51373376
from aws-sdk-kotlin.
With Scott's help I got in contact w/ a doc team person on the EC2 team that has some knowedge of the operation. In parallel I brought up this issue with Matt Muller (he worked on the RDS SEP for presigners which is similiar in spirit to this customization in EC2) and at this point it's looking like the presignUrl parameter is no longer required. There is currently a modeled parameter sourceRegion
which according to Matt did not exist at the time that their presigner customization was implemented. It seems that the operation has been updated such that the presigner url is no longer needed for cross-region encrypted snapshot copies. We're waiting on confirmation from the EC2 team.
from aws-sdk-kotlin.
The open question is bouncing around the EC2 org. Awaiting confirmation.
from aws-sdk-kotlin.
closing due to deprecated support in service. Will re-open if EC2 team comes back with specific scenarios in which this field is used.
from aws-sdk-kotlin.
Related Issues (20)
- Add support for `x-amz-retry-after` header
- Smart defaults configuration
- SNS message signature validation
- Route53 GetHostedZoneLimit HOT 3
- AWS SDK's for other languages (python/java) use a no proxy flag when requesting IMDS metadata HOT 4
- Trouble configuring DynamoDb Client timeout HOT 3
- Retry logic stop early HOT 4
- `RetryCapacityExceededException` not being thrown as expected when `circuitBreakerMode` is tripped in the `StandardRetryStrategy`
- NullPointerException with getObject HOT 12
- CloudWatch Logs's GetLogEvents paginator never terminates HOT 1
- DynamoDbClient.scanPaginated ignores exclusiveStartKey HOT 4
- Large file upload fails HOT 5
- Introduce functionality to wrap a InputStream as a ByteStream HOT 3
- S3Client is uploading files with empty Content-Encoding metadata HOT 7
- HeadObject 403 throws "Failed to parse response as 'restXml'" HOT 4
- Update or replace hardcoded Route53 tests
- SDK calls do not propagate coroutine context HOT 2
- Provide documentation about unit testing
- Support for Product Advertising API HOT 2
- Support Browser-Based Upload using HTTP Post (AWS Sig V4) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-kotlin.