mackerel-plugin-aws-transitgateway-attachment

command module
v0.0.0 Latest Latest
Warning

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

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

README

mackerel-plugin-aws-transitgateway-attachment

$ mackerel-plugin-aws-transitgateway-attachment -help
Usage of mackerel-plugin-aws-transitgateway-attachment:
  -access-key-id string
        AWS Access Key ID
  -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
  -tgw string
        Resource ID of Transit Gateway
  -tgw-attch string
        Resource ID of Transit Gateway Attachement
nabeop@nabeop-d9ec2-01:~$

use Assume Role

create IAM Role with the AWS Account that created Transit Gateway Attachment.

  • no MFA
  • allowed Policy
    • CloudWatchReadOnlyAccess

create IAM Policy with the AWS Account that runs mackerel-plugin-aws-transitgateway-attachment.

{
    "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-transitgateway-attachment.

Synopsis

use assume role.

mackerel-plugin-aws-transitgateway-attachment -role-arn <IAM Role Arn> -region <region> \
                                               -tgw <Resource ID of Transit Gateway> \
                                               -tgw-attch <Resource ID of Transit Gateway Attachment>

use access key id and secret key.

mackerel-plugin-aws-transitgateway-attachment -region <region> \
                                               -tgw <Resource ID of Transit Gateway> \
                                               -tgw-attch <Resource ID of Transit Gateway Attachment> \
                                               [-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