mackerel-plugin-aws-direct-connect

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

mackerel-plugin-aws-direct-connect

$ mackerel-plugin-aws-direct-connect -help
Usage of mackerel-plugin-aws-direct-connect:
  -access-key-id string
        AWS Access Key ID
  -direct-connect-connection string
        Resource ID of Direct Connect
  -full-spec-support
        fetch all metrics
  -metric-key-prefix string
        Metric Key Prefix
  -region string
        AWS Region
  -role-arn string
        IAM Role ARN for assume role
  -secret-key-id string
        AWS Secret Access Key ID
$

use Assume Role

create IAM Role with the AWS Account that created Direct Connect Connection.

  • no MFA
  • allowed Policy
    • CloudWatchReadOnlyAccess

create IAM Policy with the AWS Account that runs mackerel-plugin-aws-direct-connect.

{
    "Version": "2012-10-17",
    "Statement": {
        "Effect": "Allow",
        "Action": "sts:AssumeRole",
        "Resource": "arn:aws:iam::123456789012:role/YourIAMRoleName"
    }
}

attach IAM Policy to AWS Resouce that runs mackerel-plugin-aws-direct-connect.

-full-spec-support

AWS Direct Connect has 2 types of connections. If your AWS Direct Connect connection is Hosted Connection, choose -full-spec-support=false.

Synopsis

use assume role.

mackerel-plugin-aws-direct-connect -role-arn <IAM Role Arn> -region <region> \
                                   -direct-connect-connection <Resource ID of Direct Connect>

use access key id and secret key.

mackerel-plugin-aws-direct-connect -region <region> \
                                   -direct-connect-connection <Resource ID of Direct Connect>
                                  [-access-key-id <AWS Access Key ID> -secret-key-id <WS Secret Access Key ID>] \

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL