Skip to content

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

@owenCCY

Description

@owenCCY

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions