score:4
Accepted answer
the error states that credentials are missing so it is an authentication issue, you can try setting the accesskeyid
and secretaccesskey
or the credentials
fields directly on the ssm constructor.
so simply maintain your code as is, just make the following change:
// from
const ssm = new aws.ssm({ region: 'eu-west-1' });
// to
const ssm = new aws.ssm({
region: 'eu-west-1',
accesskeyid: 'your-access-key',
secretaccesskey: 'your-secret-key'
});
// or to
const ssm = new aws.ssm({
region: 'eu-west-1',
credentials: {
accesskeyid: 'your-access-key',
secretaccesskey: 'your-secret-key'
}
});
Source: stackoverflow.com
Related Query
- AWS creds error when making calls from local react app "Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"
- Getting an "Access Denied" error when I reload my React app on AWS Amplify
- Getting 403 ACCESS DENIED error when deploying React Web app on AWS Amplify
- Access Denied Error from protected routes from react app hosted on AWS Amplify
- How to avoid error 'Unexpected token <' with a React app when running babel from a CDN?
- An error occurred when I get a data from firestore in React app
- React App Firebase Missing or insufficient permissions error when importing data to firestore
- Error Running React Native App From Terminal (iOS)
- Error when deploying react app and it keeps sayings << Plugin "react" was conflicted between "package.json » eslint-config-react-app » >>
- Making REST calls from a react component
- Missing Script when I run npm start to create React app
- You need to enable javascript to run this app response when try to access local json file in react
- React app runs locally, crashes when on Heroku error code=H10
- CORS error when connecting local React frontend to local Spring Boot middleware application
- eslint error on deployment on local server of react web app
- eslint error on deployment on local server of react web app
- React Native app works when run from Xcode, but crashes when run with 'react-native run-ios'
- 404 Error when deploying React App on custom domain
- Error when running jest on a react native + typescript app (Jest encountered an unexpected token)
- Getting error when try to use React Router v6: Attempted import error: 'Action' is not exported from 'history'
- react i18next "hooks" error when using t() from useTranslation()
- react router app hosted on firebase issues 404 error only when trying to access route via address bar
- error when starting react app
- Import TypeScript modules from local module into React app
- JSON Error when create react app
- Error in Heroku when deploying react (Node) app
- How can I access my react app from another pc in local network?
- CORS issue making AJAX request from React app > Node server > redirect to Google OAuth2 auth
- Region is missing error - AWS Amplify React
- 403 error code when using axios.post to Django endpoint in React app
More Query from same tag
- Why mobX action doesn't trigger rerendering of React component
- Event-handler is not executing calculation
- postMessage validation failed error occurring during image upload using react-base64
- How to theme Material UI inside Storybook
- How to change width of Mui DatePicker v5
- Change disabled Material UI checkbox color or background color
- ReactPlayer want set playing but get warning
- How can i get jwt refreshtoken in redux-saga?
- React-Redux: Access dispatch type in JSX
- NextJS - Not Able To Use Custom Colors In Tailwind CSS In
- TypeError: this.state.data.map is not a function when deployed on Heroku but working locally
- reactjs scrolling to top doesn't work after rendering
- Babel configuration with decorators & class properties not working
- Why won't my changes to state show in my componentDidMount lifecycle?
- Sulu CMF - Filtered Single autocomplete selection for associated entity
- Render array of objects to list in JSX
- Is there a Material UI based tree select component?
- Transform is not triggered again on window resize
- How to fix internal server error 500 and refused to load image because of content security policy?
- Moving logic to child component from a parent
- delete happens before opening a modal with confirmation to delete
- React test state change after timeout
- Cannot destructure property of '{}' as it is null
- React: Componentdidupdate, Unable to access object value
- Autofill does not trigger onChange
- 'TypeError: zmq.zmqVersion is not a function' received when including ZeroMQ JS binding
- How to increase and decrease values on button clicking?
- Missing "key" prop for element in iterator and Prop spreading is forbidden
- React, typescript - 'IntrinsicAttributes'
- Changing the Form Title dynamically on button Click in React JS