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

give analysis dashbaord access to satellite bucket #479

Closed
peterdudfield opened this issue Mar 8, 2024 · 7 comments
Closed

give analysis dashbaord access to satellite bucket #479

peterdudfield opened this issue Mar 8, 2024 · 7 comments

Comments

@peterdudfield
Copy link
Contributor

Detailed Description

Would be good if the analysis dashbaord has access to the satellite bucket

Context

  • so analysis dashboard can dsiplay results

Possible Implementation

  • change eb_app to take. alist of bucket_read_policy_arn and then loop thourgh and attach to Iam role
@aryanbhosale
Copy link
Contributor

Hi @peterdudfield , I have tried to solve this in #482
Could you please review it and let me know if I have tried along the correct lines?
Thank you

@peterdudfield
Copy link
Contributor Author

peterdudfield commented Mar 12, 2024

Kinda, I was thinking, that current the be_app takes one bucket_read_policy_arn, and then attached it to the IAM role. I was hopping that we could change this to take a list of them

Current its here - https://github.com/openclimatefix/ocf-infrastructure/blob/main/terraform/modules/services/eb_app/variables.tf#L86

Would need to change this to a list and then adjust where the policy is attached.

Then on when we call this module, we can pass in more than one bucket_read_policy_arn

Also, i dont think the eb.tf needs to be touched

@aryanbhosale
Copy link
Contributor

Kinda, I was thinking, that current the be_app takes one bucket_read_policy_arn, and then attached it to the IAM role. I was hopping that we could change this to take a list of them

Current its here - https://github.com/openclimatefix/ocf-infrastructure/blob/main/terraform/modules/services/eb_app/variables.tf#L86

Would need to change this to a list and then adjust where the policy is attached.

Then on when we call this module, we can pass in more than one bucket_read_policy_arn

Also, i dont think the eb.tf needs to be touched

Okay got it, so if i'm not wrong, I need to make changes to variables.tf file and the iam.tf file right?

@aryanbhosale
Copy link
Contributor

Kinda, I was thinking, that current the be_app takes one bucket_read_policy_arn, and then attached it to the IAM role. I was hopping that we could change this to take a list of them

Current its here - https://github.com/openclimatefix/ocf-infrastructure/blob/main/terraform/modules/services/eb_app/variables.tf#L86

Would need to change this to a list and then adjust where the policy is attached.

Then on when we call this module, we can pass in more than one bucket_read_policy_arn

Also, i dont think the eb.tf needs to be touched

Hi @peterdudfield
I have made the changes, could you please review and let me know if it's right?
Also, should I be changing the india-api and analysis_dashboard modules in main.tf to incorporate the new policies?

@peterdudfield
Copy link
Contributor Author

Yea it would be great if you could also update where eb_app is used, perhaps in here and here

@aryanbhosale
Copy link
Contributor

Yea it would be great if you could also update where eb_app is used, perhaps in here and here

Hi @peterdudfield , I've added the new changes in #482 , is that what was expected?

@aryanbhosale
Copy link
Contributor

Yea it would be great if you could also update where eb_app is used, perhaps in here and here

Hi @peterdudfield , I've added the new changes in #482 , is that what was expected?

Hi @peterdudfield , do I need to make any more modifications or is anything missing in my code?

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

No branches or pull requests

2 participants