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

CloudTrail load: Error on requestParameters.overrides.containerOverrides.environment due to varied type #430

Open
kkumler opened this issue Dec 19, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@kkumler
Copy link

kkumler commented Dec 19, 2023

We are seeing some errors for CloudTrail on es-loader with object mapping for [requestParameters.overrides.containerOverrides.environment] tried to parse field [environment] as object, but found a concrete value. This error seems to come from CloudTrail entries where there is "environment": "HIDDEN_DUE_TO_SECURITY_REASONS" instead of an object/hash.
This is happening with a deployment of this sample at v2.10.2a, on AWS-managed OpenSearch 2.11.

I see this key for a couple actions, snippets from examples below.

From Batch / Step Functions SubmitJob (no error):

            "requestParameters": {
                "jobName": "Utility",
                "containerOverrides": {
                    "command": [
                        "bin/echo"
                    ],
                    "environment": [
                        {
                            "name": "MANAGED_BY_AWS",
                            "value": "STARTED_BY_STEP_FUNCTIONS"
                        },
                        {
                            "name": "JOB_DATA",
                            "value": ""
                        }
                    ]
                },

From ECS RunTask (error):

            "requestParameters": {
                "platformVersion": "LATEST",
                "overrides": {
                    "containerOverrides": [
                        {
                            "name": "default",
                            "command": [
                                "bin/echo"
                            ],
                            "environment": "HIDDEN_DUE_TO_SECURITY_REASONS"
                        }
                    ],
                    "cpu": "2048",
                    "memory": "4096"
                },
@tmat-s
Copy link

tmat-s commented Dec 20, 2023

+1
Experiencing the same issue.

@nakajiak nakajiak added the bug Something isn't working label Jan 17, 2024
@nakajiak nakajiak added this to the v2.10.3 milestone Jan 17, 2024
@nakajiak nakajiak modified the milestones: v2.10.3, v2.10.4 Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants