aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.34k stars 4.08k forks source link

SNS create platform application - InternalFailure for APNS_SANDBOX #6229

Closed scastrec closed 3 years ago

scastrec commented 3 years ago

Issue is about usage on:

Platform/OS/Hardware/Device Docker image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest

Describe the question When I'm running the following bash, i get an Internal Failure error.
When I run the Android creation first, the Android platform app works but it fails again in APNS_SANDBOX.

credential=${DEV_APNS_CERT} principal=${DEV_APNS_PVT_KEY} aws sns create-platform-application --region eu-west-1 --platform APNS_SANDBOX --name iOS --attributes PlatformCredential="$credential",PlatformPrincipal="$principal" --debug aws sns create-platform-application --region eu-west-1 --name android --platform GCM --attributes PlatformCredential=${GCM_TOKEN}

It ends up giving me botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreatePlatformApplication operation (reached max retries: 2): Unknown An error occurred (InternalFailure) when calling the CreatePlatformApplication operation (reached max retries: 2): Unknown

I'm authenticated with privileges corresponding to AdministratorAccess. Going through the same process from the Console in the master account works without problems. Cert/key are the same.

Full logs: $aws sns create-platform-application --region eu-west-1 --platform APNS_SANDBOX --name iOS --attributes PlatformCredential="$credential",PlatformPrincipal="$principal" --debug 2021-06-16 19:13:30,413 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.0.59 Python/3.7.3 Linux/4.19.78-coreos exe/x86_64.ubuntu.20 2021-06-16 19:13:30,414 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sns', 'create-platform-application', '--region', 'eu-west-1', '--platform', 'APNS_SANDBOX', '--name', 'iOS', '--attributes', 'PlatformCredential=-----BEGIN CERTIFICATE-----\n MY CERTIFICATE \n-----END CERTIFICATE-----\n,PlatformPrincipal=-----BEGIN PRIVATE KEY-----\n MY PRIVATE KEY \n-----END PRIVATE KEY-----\n', '--debug'] 2021-06-16 19:13:30,414 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x7f227aab3510> 2021-06-16 19:13:30,414 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7f227b3d1b70> 2021-06-16 19:13:30,415 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x7f227aa72a60> 2021-06-16 19:13:30,415 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function no_pager_handler at 0x7f227b3cd730> 2021-06-16 19:13:30,415 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7f227b3b21e0> 2021-06-16 19:13:30,416 - MainThread - botocore.utils - INFO - IMDS ENDPOINT: http://169.254.169.254/ 2021-06-16 19:13:30,419 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7f227ab78f28> 2021-06-16 19:13:30,420 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x7f227ac328c8> 2021-06-16 19:13:30,434 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.59/dist/botocore/data/sns/2010-03-31/service-2.json 2021-06-16 19:13:30,446 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sns: calling handler <function add_waiters at 0x7f227aa39950> 2021-06-16 19:13:30,461 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('name', <awscli.arguments.CLIArgument object at 0x7f227a898ba8>), ('platform', <awscli.arguments.CLIArgument object at 0x7f227a898be0>), ('attributes', <awscli.arguments.CLIArgument object at 0x7f227a898c18>)]) 2021-06-16 19:13:30,462 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function add_streaming_output_arg at 0x7f227aab37b8> 2021-06-16 19:13:30,462 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function add_cli_input_json at 0x7f227b3b29d8> 2021-06-16 19:13:30,463 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function add_cli_input_yaml at 0x7f227b3b90d0> 2021-06-16 19:13:30,463 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function unify_paging_params at 0x7f227abc20d0> 2021-06-16 19:13:30,479 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.59/dist/botocore/data/sns/2010-03-31/paginators-1.json 2021-06-16 19:13:30,479 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function add_generate_skeleton at 0x7f227ab13d90> 2021-06-16 19:13:30,480 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sns.create-platform-application: calling handler <function add_auto_prompt at 0x7f227aa729d8> 2021-06-16 19:13:30,480 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sns.create-platform-application: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7f227a898c88>> 2021-06-16 19:13:30,480 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sns.create-platform-application: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7f227a898cf8>> 2021-06-16 19:13:30,481 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sns.create-platform-application: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f227a898eb8>> 2021-06-16 19:13:30,481 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sns.create-platform-application: calling handler <bound method AutoPromptArgument.override_required_args of <awscli.customizations.autoprompt.AutoPromptArgument object at 0x7f227a898e48>> 2021-06-16 19:13:30,482 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,483 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sns.create-platform-application: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f227b3f3fd0> 2021-06-16 19:13:30,483 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'iOS' for parameter "name": 'iOS' 2021-06-16 19:13:30,483 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.platform: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,483 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sns.create-platform-application: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f227b3f3fd0> 2021-06-16 19:13:30,484 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'APNS_SANDBOX' for parameter "platform": 'APNS_SANDBOX' 2021-06-16 19:13:30,484 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.attributes: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,484 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sns.create-platform-application: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f227b3f3fd0> 2021-06-16 19:13:30,484 - MainThread - awscli.argprocess - DEBUG - Parsing param --attributes as shorthand 2021-06-16 19:13:30,485 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'PlatformCredential=-----BEGIN CERTIFICATE-----\n MY CERTIFICATE \n-----END CERTIFICATE-----\n,PlatformPrincipal=-----BEGIN PRIVATE KEY-----\nMY PRIVATE KEY \n-----END PRIVATE KEY-----\n' for parameter "attributes": {'PlatformCredential': '-----BEGIN CERTIFICATE-----\nMY CERTIFICATE \n-----END CERTIFICATE-----', 'PlatformPrincipal': '-----BEGIN PRIVATE KEY-----\nMY PRIVATE KEY \n-----END PRIVATE KEY-----'} 2021-06-16 19:13:30,486 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,486 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.cli-input-yaml: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,486 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,487 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sns.create-platform-application.cli-auto-prompt: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f227a9f5940> 2021-06-16 19:13:30,487 - MainThread - botocore.hooks - DEBUG - Event calling-command.sns.create-platform-application: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x7f227a898c88>> 2021-06-16 19:13:30,487 - MainThread - botocore.hooks - DEBUG - Event calling-command.sns.create-platform-application: calling handler <bound method CliInputArgument.add_to_call_parameters of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x7f227a898cf8>> 2021-06-16 19:13:30,487 - MainThread - botocore.hooks - DEBUG - Event calling-command.sns.create-platform-application: calling handler <bound method GenerateCliSkeletonArgument.generate_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f227a898eb8>> 2021-06-16 19:13:30,487 - MainThread - botocore.hooks - DEBUG - Event calling-command.sns.create-platform-application: calling handler <bound method AutoPromptArgument.auto_prompt_arguments of <awscli.customizations.autoprompt.AutoPromptArgument object at 0x7f227a898e48>> 2021-06-16 19:13:30,488 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env 2021-06-16 19:13:30,488 - MainThread - botocore.credentials - INFO - Found credentials in environment variables. 2021-06-16 19:13:30,489 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/aws-cli/v2/2.0.59/dist/botocore/data/endpoints.json 2021-06-16 19:13:30,496 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f227c3c0730> 2021-06-16 19:13:30,498 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.sns: calling handler <function add_generate_presigned_url at 0x7f227c3f3b70> 2021-06-16 19:13:30,502 - MainThread - botocore.endpoint - DEBUG - Setting sns timeout as (60, 60) 2021-06-16 19:13:30,503 - MainThread - botocore.hooks - DEBUG - Event provide-client-params.sns.CreatePlatformApplication: calling handler <function base64_decode_input_blobs at 0x7f227a9fb2f0> 2021-06-16 19:13:30,504 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.sns.CreatePlatformApplication: calling handler <function generate_idempotent_uuid at 0x7f227c35f620> 2021-06-16 19:13:30,504 - MainThread - botocore.hooks - DEBUG - Event before-call.sns.CreatePlatformApplication: calling handler <function inject_api_version_header_if_needed at 0x7f227c364d90> 2021-06-16 19:13:30,504 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreatePlatformApplication) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'aws-cli/2.0.59 Python/3.7.3 Linux/4.19.78-coreos exe/x86_64.ubuntu.20 command/sns.create-platform-application'}, 'body': {'Action': 'CreatePlatformApplication', 'Version': '2010-03-31', 'Name': 'iOS', 'Platform': 'APNS_SANDBOX', 'Attributes.entry.1.key': 'PlatformCredential', 'Attributes.entry.1.value': '-----BEGIN CERTIFICATE-----\nMY CERTIFICATE \n-----END CERTIFICATE-----', 'Attributes.entry.2.key': 'PlatformPrincipal', 'Attributes.entry.2.value': '-----BEGIN PRIVATE KEY-----\nMY PRIVATE KEY\n-----END PRIVATE KEY-----'}, 'url': 'https://sns.eu-west-1.amazonaws.com/', 'context': {'client_region': 'eu-west-1', 'client_config': <botocore.config.Config object at 0x7f227a6499e8>, 'has_streaming_input': False, 'auth_type': None}} 2021-06-16 19:13:30,505 - MainThread - botocore.hooks - DEBUG - Event request-created.sns.CreatePlatformApplication: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f227a649940>> 2021-06-16 19:13:30,505 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sns.CreatePlatformApplication: calling handler <function set_operation_specific_signer at 0x7f227c35f510> 2021-06-16 19:13:30,506 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2021-06-16 19:13:30,506 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST / content-type:application/x-www-form-urlencoded; charset=utf-8 host:sns.eu-west-1.amazonaws.com x-amz-date:20210616T191330Z content-type;host;x-amz-date 244f80c8270843d13c926b9a16362a09a03faeb253213360bad83056b34c9232 2021-06-16 19:13:30,507 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20210616T191330Z 20210616/eu-west-1/sns/aws4_request cb3af7274ad4fca02983801343b63f504139d89a737ab49bac225e49ba82c691 2021-06-16 19:13:30,507 - MainThread - botocore.auth - DEBUG - Signature: 4b8cde3bb2fe10fbe6c4a78075034cdfcdc650a18f873eec7a59b89062525b35 2021-06-16 19:13:30,508 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://sns.eu-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.0.59 Python/3.7.3 Linux/4.19.78-coreos exe/x86_64.ubuntu.20 command/sns.create-platform-application', 'X-Amz-Date': b'20210616T191330Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAT3WODBVBMZQF3FMW/20210616/eu-west-1/sns/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=4b8cde3bb2fe10fbe6c4a78075034cdfcdc650a18f873eec7a59b89062525b35', 'Content-Length': '4153'}> 2021-06-16 19:13:30,508 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): sns.eu-west-1.amazonaws.com:443 2021-06-16 19:13:30,989 - MainThread - urllib3.connectionpool - DEBUG - https://sns.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 500 224 2021-06-16 19:13:30,990 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'aa5fef9f-6e99-50bd-be03-b6db2103b9ef', 'Content-Type': 'text/xml', 'Content-Length': '224', 'Date': 'Wed, 16 Jun 2021 19:13:30 GMT', 'Connection': 'close'} 2021-06-16 19:13:30,990 - MainThread - botocore.parsers - DEBUG - Response body: b'<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">\n <Error>\n <Type>Receiver</Type>\n <Code>InternalFailure</Code>\n </Error>\n <RequestId>aa5fef9f-6e99-50bd-be03-b6db2103b9ef</RequestId>\n</ErrorResponse>\n' 2021-06-16 19:13:30,991 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sns.CreatePlatformApplication: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7f227a61d160>> 2021-06-16 19:13:30,991 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.7987083384723213 2021-06-16 19:13:30,992 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.7987083384723213 seconds 2021-06-16 19:13:31,792 - MainThread - botocore.hooks - DEBUG - Event request-created.sns.CreatePlatformApplication: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f227a649940>> 2021-06-16 19:13:31,792 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sns.CreatePlatformApplication: calling handler <function set_operation_specific_signer at 0x7f227c35f510> 2021-06-16 19:13:31,793 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2021-06-16 19:13:31,793 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST / content-type:application/x-www-form-urlencoded; charset=utf-8 host:sns.eu-west-1.amazonaws.com x-amz-date:20210616T191331Z content-type;host;x-amz-date 244f80c8270843d13c926b9a16362a09a03faeb253213360bad83056b34c9232 2021-06-16 19:13:31,793 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20210616T191331Z 20210616/eu-west-1/sns/aws4_request b73b074443fa7f074cc5c223be4c0ed9dcc0869096fd31643659ca1f1273fcad 2021-06-16 19:13:31,793 - MainThread - botocore.auth - DEBUG - Signature: cd9e7b9872e1e495a80de03ec58181e618726a190dc2f598a00fa9ba3bbc664c 2021-06-16 19:13:31,794 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://sns.eu-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.0.59 Python/3.7.3 Linux/4.19.78-coreos exe/x86_64.ubuntu.20 command/sns.create-platform-application', 'X-Amz-Date': b'20210616T191331Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAT3WODBVBMZQF3FMW/20210616/eu-west-1/sns/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=cd9e7b9872e1e495a80de03ec58181e618726a190dc2f598a00fa9ba3bbc664c', 'Content-Length': '4153'}> 2021-06-16 19:13:31,794 - MainThread - urllib3.connectionpool - DEBUG - Resetting dropped connection: sns.eu-west-1.amazonaws.com 2021-06-16 19:13:32,218 - MainThread - urllib3.connectionpool - DEBUG - https://sns.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 500 224 2021-06-16 19:13:32,219 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'cfac09a4-0732-5a1a-8c8b-50e048ae60e1', 'Content-Type': 'text/xml', 'Content-Length': '224', 'Date': 'Wed, 16 Jun 2021 19:13:31 GMT', 'Connection': 'close'} 2021-06-16 19:13:32,219 - MainThread - botocore.parsers - DEBUG - Response body: b'<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">\n <Error>\n <Type>Receiver</Type>\n <Code>InternalFailure</Code>\n </Error>\n <RequestId>cfac09a4-0732-5a1a-8c8b-50e048ae60e1</RequestId>\n</ErrorResponse>\n' 2021-06-16 19:13:32,219 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sns.CreatePlatformApplication: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7f227a61d160>> 2021-06-16 19:13:32,220 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.8067329000135297 2021-06-16 19:13:32,220 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.8067329000135297 seconds 2021-06-16 19:13:33,028 - MainThread - botocore.hooks - DEBUG - Event request-created.sns.CreatePlatformApplication: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f227a649940>> 2021-06-16 19:13:33,028 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sns.CreatePlatformApplication: calling handler <function set_operation_specific_signer at 0x7f227c35f510> 2021-06-16 19:13:33,029 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth. 2021-06-16 19:13:33,030 - MainThread - botocore.auth - DEBUG - CanonicalRequest: POST / content-type:application/x-www-form-urlencoded; charset=utf-8 host:sns.eu-west-1.amazonaws.com x-amz-date:20210616T191333Z content-type;host;x-amz-date 244f80c8270843d13c926b9a16362a09a03faeb253213360bad83056b34c9232 2021-06-16 19:13:33,030 - MainThread - botocore.auth - DEBUG - StringToSign: AWS4-HMAC-SHA256 20210616T191333Z 20210616/eu-west-1/sns/aws4_request a99dd2acfbecba51662e1677eaff26887b06a8651cbfcec4531bf0fcc7c53598 2021-06-16 19:13:33,030 - MainThread - botocore.auth - DEBUG - Signature: e3faad930a9fa13cdb96f64a50602178dbd39c06d52c829f5d18aac06f2b7a4a 2021-06-16 19:13:33,031 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://sns.eu-west-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'aws-cli/2.0.59 Python/3.7.3 Linux/4.19.78-coreos exe/x86_64.ubuntu.20 command/sns.create-platform-application', 'X-Amz-Date': b'20210616T191333Z', 'Authorization': b'AWS4-HMAC-SHA256 Credential=AKIAT3WODBVBMZQF3FMW/20210616/eu-west-1/sns/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=e3faad930a9fa13cdb96f64a50602178dbd39c06d52c829f5d18aac06f2b7a4a', 'Content-Length': '4153'}> 2021-06-16 19:13:33,032 - MainThread - urllib3.connectionpool - DEBUG - Resetting dropped connection: sns.eu-west-1.amazonaws.com 2021-06-16 19:13:33,445 - MainThread - urllib3.connectionpool - DEBUG - https://sns.eu-west-1.amazonaws.com:443 "POST / HTTP/1.1" 500 224 2021-06-16 19:13:33,446 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': '2f9ac677-c128-5a07-b9f4-9f338eb574d0', 'Content-Type': 'text/xml', 'Content-Length': '224', 'Date': 'Wed, 16 Jun 2021 19:13:33 GMT', 'Connection': 'close'} 2021-06-16 19:13:33,447 - MainThread - botocore.parsers - DEBUG - Response body: b'<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">\n <Error>\n <Type>Receiver</Type>\n <Code>InternalFailure</Code>\n </Error>\n <RequestId>2f9ac677-c128-5a07-b9f4-9f338eb574d0</RequestId>\n</ErrorResponse>\n' 2021-06-16 19:13:33,447 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sns.CreatePlatformApplication: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x7f227a61d160>> 2021-06-16 19:13:33,447 - MainThread - botocore.retries.standard - DEBUG - Max attempts of 3 reached. 2021-06-16 19:13:33,448 - MainThread - botocore.retries.standard - DEBUG - Not retrying request. 2021-06-16 19:13:33,448 - MainThread - botocore.hooks - DEBUG - Event after-call.sns.CreatePlatformApplication: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x7f227a649d30>> 2021-06-16 19:13:33,449 - MainThread - awscli.clidriver - DEBUG - Service returned an exception Traceback (most recent call last): File "awscli/clidriver.py", line 386, in main File "awscli/clidriver.py", line 558, in __call__ File "awscli/clidriver.py", line 738, in __call__ File "awscli/clidriver.py", line 867, in invoke File "awscli/clidriver.py", line 879, in _make_client_call File "botocore/client.py", line 249, in _api_call File "botocore/client.py", line 568, in _make_api_call botocore.exceptions.ClientError: An error occurred (InternalFailure) when calling the CreatePlatformApplication operation (reached max retries: 2): Unknown An error occurred (InternalFailure) when calling the CreatePlatformApplication operation (reached max retries: 2): Unknown

scastrec commented 3 years ago

I just inversed Platform credential/principal attributes values.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.