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

nasa-veda, terraform: add permissions to read USGS Landsat bucket #3737

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

freitagb
Copy link
Contributor

No description provided.

@freitagb freitagb requested a review from a team as a code owner February 22, 2024 22:17
@consideRatio consideRatio changed the title added permissions to read USGS Landsat bucket nasa-veda, terraform: add permissions to read USGS Landsat bucket Feb 23, 2024
@consideRatio
Copy link
Contributor

consideRatio commented Feb 23, 2024

@freitagb this should be added for staging also right? I pushed a commit.

This still needs to be applied, I'm not doing that right now having on time off.

@freitagb
Copy link
Contributor Author

yes. Please apply it to both prod and staging. Thanks @consideRatio!

@sgibson91
Copy link
Member

Output of terraform plan

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated
with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_iam_policy.extra_user_policy["prod"] will be updated in-place
  ~ resource "aws_iam_policy" "extra_user_policy" {
        id          = "arn:aws:iam::444055461661:policy/nasa-veda-prod-extra-user-policy"
        name        = "nasa-veda-prod-extra-user-policy"
      ~ policy      = jsonencode(
          ~ {
              ~ Statement = [
                  ~ {
                      ~ Resource = [
                            # (23 unchanged elements hidden)
                            "arn:aws:s3:::sdap-dev-zarr/*",
                          + "arn:aws:s3:::usgs-landsat",
                          + "arn:aws:s3:::usgs-landsat/*",
                        ]
                        # (2 unchanged attributes hidden)
                    },
                    {
                        Action   = "s3:ListAllMyBuckets"
                        Effect   = "Allow"
                        Resource = "*"
                    },
                ]
                # (1 unchanged attribute hidden)
            }
        )
        tags        = {}
        # (5 unchanged attributes hidden)
    }

  # aws_iam_policy.extra_user_policy["staging"] will be updated in-place
  ~ resource "aws_iam_policy" "extra_user_policy" {
        id          = "arn:aws:iam::444055461661:policy/nasa-veda-staging-extra-user-policy"
        name        = "nasa-veda-staging-extra-user-policy"
      ~ policy      = jsonencode(
          ~ {
              ~ Statement = [
                  ~ {
                      ~ Resource = [
                            # (23 unchanged elements hidden)
                            "arn:aws:s3:::sdap-dev-zarr/*",
                          + "arn:aws:s3:::usgs-landsat",
                          + "arn:aws:s3:::usgs-landsat/*",
                        ]
                        # (2 unchanged attributes hidden)
                    },
                    {
                        Action   = "s3:ListAllMyBuckets"
                        Effect   = "Allow"
                        Resource = "*"
                    },
                ]
                # (1 unchanged attribute hidden)
            }
        )
        tags        = {}
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

@sgibson91
Copy link
Member

Successfully applied

@sgibson91 sgibson91 merged commit a83ebd7 into 2i2c-org:master Feb 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done 🎉
Development

Successfully merging this pull request may close these issues.

3 participants