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

Fluent-bit agent installation and config distribution: China region SSM command will fail due to S3 plugin issue #274

Open
owenCCY opened this issue Mar 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@owenCCY
Copy link
Contributor

owenCCY commented Mar 22, 2024

Describe the bug

In China regions, Fluent-bit installation command from SSM is not working, download command will fail.

Expected Behavior

Fluent-bit zip file downloaded by script

Current Behavior

Fluent-bit zip file download failed

Reproduction Steps

Create EC2 group in China regions and click install agent

Possible Solution

Substitute the following command blocks in SSM command:

{
  "inputs": {
    "sourceInfo": "{\"path\":\"https://aws-solutions-assets.s3.cn-north-1.amazonaws.com.cn/clo/<YOUR_SOLUTION_VERSION>/aws-for-fluent-bit/fluent-bit{{ARCHITECTURE}}.tar.gz\"}",
    "sourceType": "S3",
    "destinationPath": "/opt"
  },
  "name": "downloadFluentBit",
  "action": "aws:downloadContent",
  "precondition": {
    "StringEquals": [
      "{{FluentBitSource}}",
      "AWS"
    ]
  }
}

with

{
  "inputs": {
    "runCommand": [
      "sudo aws s3 cp s3://aws-gcr-solutions-assets/clo/<YOUR_SOLUTION_VERSION>/aws-for-fluent-bit/fluent-bit{{ARCHITECTURE}}.tar.gz /opt"
    ]
  },
  "name": "installFluentBit",
  "action": "aws:runShellScript"
}

Please also substitute the fluent-bit config distribution command document accordingly.

Additional Information/Context

No response

Solution Version

2.1.1

AWS Region. e.g., us-east-1

cn-north-1

Other information

No response

@owenCCY owenCCY added the bug Something isn't working label Mar 22, 2024
@owenCCY owenCCY self-assigned this Mar 22, 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

1 participant