skip to Main Content

Bash – Extract region from AWS arn

Very simple task: extract the region from an AWS arn. Example: arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3 I need to extract eu-west-2 I have a working regex for this: ^(?:[^:]+:){3}([^:]+).* I tried this command, but it returns the entire string: echo "arn:aws:lambda:eu-west-2:12345678912:layer:my-awsome-layer:3" | grep -oP…

VIEW QUESTION

Fatal error condition occurred in c:209: allocator != ((void *)0) – aws-sdk-cpp

I'm having an issue after updating: Upload an object to an Amazon S3 bucket using an AWS SDK:(https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_PutObject_section.html) int main(int, char **) { Aws::SDKOptions options; classB::initAwsApi(options); while (true) { //... if (threadApi.joinable()) threadApi.join(); threadApi = std::thread(request, &connection, &headers); std::this_thread::sleep_for(std::chrono::seconds(5)); //…

VIEW QUESTION
Back To Top
Search