Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AWS config and identity store #2208

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

vikhyat187
Copy link
Contributor

Date: 8th Oct 24

Developer Name: Vikhyat


Issue Ticket Number

Real-Dev-Squad/todo-action-items#253

Description

Have added the AWS config setup and functions to create user / add user to the IAM group

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Test Coverage

Screenshot 1

Additional Notes

@vikhyat187 vikhyat187 self-assigned this Oct 8, 2024
@joyguptaa
Copy link
Contributor

@vikhyat187 there are no test written along with it. Is there any reason for that?

@vikhyat187
Copy link
Contributor Author

@vikhyat187 there are no test written along with it. Is there any reason for that?

Since this needs integration test to test this functionality need to figure out, if we can connect to AWS via github actions.
Can we write unit tests for this? (Haven't written much tests so far). @joyguptaa

Comment on lines +23 to +29
aws: {
region: "<aws-region>",
access_key: "<aws-access-key>",
secret_key: "<aws-secret-key>",
identity_store_id: "<identity-store-id>",
},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to add env keys, please fix this part?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't get this part, do you suggest that the content from production.js cannot be stored in the Github secrets / secrets at the deployment time.
@prakashchoudhary07

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check how new env keys are added, and update the code accordingly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure let me check once.

Comment on lines +10 to +13
const accessKeyId = config.get("aws.access_key") || null;
const secretAccessKey = config.get("aws.secret_key") || null;
const region = config.get("aws.region") || "us-east-1";
const identityStoreId = config.get("aws.identity_store_id");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a null check?
It it doesn't get it it should fail, right?

utils/aws.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants