generated from amazon-archives/__template_Apache-2.0
-
Couldn't load subscription status.
- Fork 101
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpending-responseIssue is pending response from authorIssue is pending response from authorpending-triageIncoming issues that need categorizationIncoming issues that need categorization
Description
Environment information
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ aws configure sso
SSO session name [jeromes]:
The only AWS account available to you is: 225476886059
Using the account ID 225476886059
The only role available to you is: amplify-policy
Using the role name "amplify-policy"
CLI default client Region [us-east-1]:
CLI default output format [None]:
CLI profile name [amplify-policy-225476886059]: default
To use this profile, specify the profile name using --profile, as shown:
aws s3 ls --profile default
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ npx ampx sandbox
ampx sandbox
Starts sandbox, watch mode for Amplify backend deployments
Commands:
ampx sandbox delete Deletes sandbox environment
ampx sandbox secret <command> Manage sandbox secrets
Logs streaming
--stream-function-logs Whether to stream function execution logs. Defa
ult: false. Use --logs-filter in addition to th
is flag to stream specific function logs
[boolean]
--logs-filter Regex pattern to filter logs from only matched
functions. E.g. to stream logs for a function,
specify it's name, and to stream logs from all
functions starting with auth specify 'auth' Def
ault: Stream all logs [array]
--logs-out-file File to append the streaming logs. The file is
created if it does not exist. Default: stdout
[string]
Options:
--debug Print debug logs to the console
[boolean] [default: false]
--help Show help [boolean]
--dir-to-watch Directory to watch for file changes. All subdirector
ies and files will be included. Defaults to the ampl
ify directory. [string]
--exclude An array of paths or glob patterns to ignore. Paths
can be relative or absolute and can either be files
or directories [array]
--identifier An optional identifier to distinguish between differ
ent sandboxes. Default is the name of the system use
r executing the process [string]
--outputs-format amplify_outputs file format
[string] [choices: "mjs", "json", "json-mobile", "ts", "dart"]
--outputs-version Version of the configuration. Version 0 represents c
lassic amplify-cli config file amplify-configuration
and 1 represents newer config file amplify_outputs
[string] [choices: "0", "1.1"] [default: "1.1"]
--outputs-out-dir A path to directory where amplify_outputs is written
. If not provided defaults to current process workin
g directory. [string]
--profile An AWS profile name. [string]
--once Execute a single sandbox deployment without watching
for future file changes [boolean]
SSMCredentialsError: UnrecognizedClientException: The security token included in the request is invalid.
Resolution: Make sure your AWS credentials are set up correctly and have permissions to call SSM:GetParameter
Cause: The security token included in the request is invalid.
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDYPMukd/L/Gk9+6nqC6W8qjiVNZGg62LW7xNymiX97XG3ZcKvgric000TgFt2Xn9Bd8nC6cgj6Ju2DIHa4jktxXcyz+C2J1wgvdEPOSXk2L4VQiPDNLG0/eGXiHFOnI8OOYaBVFNaHOEoRwUtGMP6Xay6nt9pJ3NFNkWPUqSgMrlD9C5O8FsuNx3bQNnK/Ep1C2s1mA61kcYnMaRrdmQuNyQPCS/dJ7pl54EL4ZiIAP5qA/yF2c6QaZrmg8rs5lxKP57jgZk3rR2S1Rmeu+s+Lmxi8l5aPMPRihN6gX9yAIWFUBixMMAZiZuSEYp/iYAtyVtIjsFYAFYBvBZEYSFQ9mLIMlDPjW8kkG8aHlsLj/MGNLzJzb0GqVsHAhbMf4V2RktoC1f0+S0h4uBjuoidLk9ohV9RRTI11Y9Buw5drUdQ04D1ofDsr9rYZ+bF5Rb7HW6zpb/7p+FsUl/htzonaridONOQx8TuccCKd3c2tu9gZenwh5ouCBCYwn5r88mU= jeromes@gamingrig
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ cat ~/.aws/
cli/ config credentials sso/
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ cat ~/.aws/
cli/ config credentials sso/
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ cat ~/.aws/config
[default]
region = us-east-1
sso_session = jeromes
sso_account_id = 225476886059
sso_role_name = amplify-policy
[sso-session amplify-admin]
sso_start_url = https://d-9067d3d0c0.awsapps.com/start
sso_region = us-east-1
sso_registration_scopes = sso:account:access
[sso-session jeromes]
sso_start_url = https://d-9067d3d0c0.awsapps.com/start
sso_region = us-east-1
sso_registration_scopes = sso:account:access
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ nano ~/.aws/con
fig
jeromes@gamingrig:~/Projects/amplify-vite-react-template$ npx ampx sandbox
ampx sandbox
Starts sandbox, watch mode for Amplify backend deployments
Commands:
ampx sandbox delete Deletes sandbox environment
ampx sandbox secret <command> Manage sandbox secrets
Logs streaming
--stream-function-logs Whether to stream function execution logs. Defa
ult: false. Use --logs-filter in addition to th
is flag to stream specific function logs
[boolean]
--logs-filter Regex pattern to filter logs from only matched
functions. E.g. to stream logs for a function,
specify it's name, and to stream logs from all
functions starting with auth specify 'auth' Def
ault: Stream all logs [array]
--logs-out-file File to append the streaming logs. The file is
created if it does not exist. Default: stdout
[string]
Options:
--debug Print debug logs to the console
[boolean] [default: false]
--help Show help [boolean]
--dir-to-watch Directory to watch for file changes. All subdirector
ies and files will be included. Defaults to the ampl
ify directory. [string]
--exclude An array of paths or glob patterns to ignore. Paths
can be relative or absolute and can either be files
or directories [array]
--identifier An optional identifier to distinguish between differ
ent sandboxes. Default is the name of the system use
r executing the process [string]
--outputs-format amplify_outputs file format
[string] [choices: "mjs", "json", "json-mobile", "ts", "dart"]
--outputs-version Version of the configuration. Version 0 represents c
lassic amplify-cli config file amplify-configuration
and 1 represents newer config file amplify_outputs
[string] [choices: "0", "1.1"] [default: "1.1"]
--outputs-out-dir A path to directory where amplify_outputs is written
. If not provided defaults to current process workin
g directory. [string]
--profile An AWS profile name. [string]
--once Execute a single sandbox deployment without watching
for future file changes [boolean]
SSMCredentialsError: UnrecognizedClientException: The security token included in the request is invalid.
Resolution: Make sure your AWS credentials are set up correctly and have permissions to call SSM:GetParameter
Cause: The security token included in the request is invalid.
Describe the bug
ive followed tutorial 5 times and always get this error what the heck is going on
?
Reproduction steps
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpending-responseIssue is pending response from authorIssue is pending response from authorpending-triageIncoming issues that need categorizationIncoming issues that need categorization