amazon-ecs-cli: github.com/aws/amazon-ecs-cli/ecs-cli/modules/commands/flags Index | Files

package flags

import "github.com/aws/amazon-ecs-cli/ecs-cli/modules/commands/flags"

Index

Package Files

flags.go

Constants

const (
    // Configure
    AccessKeyFlag           = "access-key"
    SecretKeyFlag           = "secret-key"
    SessionTokenFlag        = "session-token"
    RegionFlag              = "region"
    EndpointFlag            = "endpoint"
    AwsRegionEnvVar         = "AWS_REGION"
    AwsDefaultRegionEnvVar  = "AWS_DEFAULT_REGION"
    AwsDefaultProfileEnvVar = "AWS_DEFAULT_PROFILE"
    ProfileFlag             = "profile"
    ClusterFlag             = "cluster"
    ClusterEnvVar           = "ECS_CLUSTER"
    VerboseFlag             = "verbose"
    ClusterConfigFlag       = "cluster-config"
    ECSProfileFlag          = "ecs-profile"
    ProfileNameFlag         = "profile-name"
    ConfigNameFlag          = "config-name"
    AWSProfileFlag          = "aws-profile"
    ECSProfileEnvVar        = "ECS_PROFILE"
    AWSProfileEnvVar        = "AWS_PROFILE"
    AWSAccessKeyEnvVar      = "AWS_ACCESS_KEY_ID"
    AWSSecretKeyEnvVar      = "AWS_SECRET_ACCESS_KEY"

    // logs
    TaskIDFlag         = "task-id"
    TaskDefinitionFlag = "task-def"
    FollowLogsFlag     = "follow"
    FilterPatternFlag  = "filter-pattern"
    SinceFlag          = "since"
    StartTimeFlag      = "start-time"
    EndTimeFlag        = "end-time"
    TimeStampsFlag     = "timestamps"
    CreateLogsFlag     = "create-log-groups"

    // Service Discovery
    PrivateDNSNamespaceNameFlag                 = "private-dns-namespace"
    PrivateDNSNamespaceIDFlag                   = "private-dns-namespace-id"
    PublicDNSNamespaceIDFlag                    = "public-dns-namespace-id"
    PublicDNSNamespaceNameFlag                  = "public-dns-namespace"
    EnableServiceDiscoveryFlag                  = "enable-service-discovery"
    DNSTypeFlag                                 = "dns-type"
    DNSTTLFlag                                  = "dns-ttl"
    ServiceDiscoveryContainerNameFlag           = "sd-container-name"
    ServiceDiscoveryContainerPortFlag           = "sd-container-port"
    HealthcheckCustomConfigFailureThresholdFlag = "healthcheck-custom-config-failure-threshold"
    DeletePrivateNamespaceFlag                  = "delete-namespace"
    UpdateServiceDiscoveryFlag                  = "update-service-discovery"

    ComposeProjectNamePrefixFlag         = "compose-project-name-prefix"
    ComposeProjectNamePrefixDefaultValue = "ecscompose-"
    ComposeServiceNamePrefixFlag         = "compose-service-name-prefix"
    ComposeServiceNamePrefixDefaultValue = ComposeProjectNamePrefixDefaultValue + "service-"
    CFNStackNameFlag                     = "cfn-stack-name"
    CFNStackNamePrefixDefaultValue       = utils.ECSCLIResourcePrefix

    LaunchTypeFlag         = "launch-type"
    DefaultLaunchTypeFlag  = "default-launch-type"
    SchedulingStrategyFlag = "scheduling-strategy"

    //attribute-checker
    ContainerInstancesFlag = "container-instances"

    // Cluster
    AsgMaxSizeFlag                  = "size"
    VpcAzFlag                       = "azs"
    SecurityGroupFlag               = "security-group"
    SourceCidrFlag                  = "cidr"
    EcsPortFlag                     = "port"
    SubnetIdsFlag                   = "subnets"
    VpcIdFlag                       = "vpc"
    InstanceTypeFlag                = "instance-type"
    SpotPriceFlag                   = "spot-price"
    InstanceRoleFlag                = "instance-role"
    ImageIdFlag                     = "image-id"
    KeypairNameFlag                 = "keypair"
    CapabilityIAMFlag               = "capability-iam"
    NoAutoAssignPublicIPAddressFlag = "no-associate-public-ip-address"
    ForceFlag                       = "force"
    EmptyFlag                       = "empty"
    UserDataFlag                    = "extra-user-data"

    // Image
    RegistryIdFlag = "registry-id"
    TaggedFlag     = "tagged"
    UntaggedFlag   = "untagged"
    UseFIPSFlag    = "use-fips" // TODO: repurpose to use more generally with other services/workflows

    // Compose
    ProjectNameFlag           = "project-name"
    ComposeFileNameFlag       = "file"
    TaskRoleArnFlag           = "task-role-arn"
    ECSParamsFileNameFlag     = "ecs-params"
    ForceUpdateFlag           = "force-update"
    RegistryCredsFileNameFlag = "registry-creds"

    // Compose Service
    CreateServiceCommandName                = "create"
    DeploymentMaxPercentDefaultValue        = 200
    DeploymentMaxPercentFlag                = "deployment-max-percent"
    DeploymentMinHealthyPercentDefaultValue = 100
    DeploymentMinHealthyPercentFlag         = "deployment-min-healthy-percent"
    TargetGroupArnFlag                      = "target-group-arn"
    ContainerNameFlag                       = "container-name"
    ContainerPortFlag                       = "container-port"
    LoadBalancerNameFlag                    = "load-balancer-name"
    HealthCheckGracePeriodFlag              = "health-check-grace-period"
    RoleFlag                                = "role"
    ComposeServiceTimeOutFlag               = "timeout"
    ForceDeploymentFlag                     = "force-deployment"

    // Registry Creds
    UpdateExistingSecretsFlag = "update-existing-secrets"
    RoleNameFlag              = "role-name"
    NoRoleFlag                = "no-role"
    NoOutputFileFlag          = "no-output-file"
    OutputDirFlag             = "output-dir"

    DesiredTaskStatus = "desired-status"

    ResourceTagsFlag          = "tags"
    DisableECSManagedTagsFlag = "disable-ecs-managed-tags"
)

Flag names used by the cli.

func AppendFlags Uses

func AppendFlags(flags ...[]cli.Flag) []cli.Flag

AppendFlags appends a series of lists of flags

func CFNResourceFlags Uses

func CFNResourceFlags() []string

func DebugFlag Uses

func DebugFlag() []cli.Flag

func OptionalClusterFlag Uses

func OptionalClusterFlag() cli.Flag

OptionalClusterFlag inline overrides cluster

func OptionalConfigFlags Uses

func OptionalConfigFlags() []cli.Flag

OptionalConfigFlags returns the concatenation of OptionalRegionAndProfileFlags and OptionalClusterFlag

func OptionalCreateLogsFlag Uses

func OptionalCreateLogsFlag() []cli.Flag

OptionalCreateLogsFlag allows users to specify the launch type for their task/service/cluster

func OptionalDesiredStatusFlag Uses

func OptionalDesiredStatusFlag() []cli.Flag

OptionalDesiredStatusFlag allows users to filter tasks returned by the ps commands

func OptionalForceUpdateFlag Uses

func OptionalForceUpdateFlag() []cli.Flag

OptionalForceUpdateFlag allows users to force an update of running tasks on compose up.

func OptionalLaunchTypeFlag Uses

func OptionalLaunchTypeFlag() []cli.Flag

OptionalLaunchTypeFlag allows users to specify the launch type for their task/service/cluster

func OptionalRegionAndProfileFlags Uses

func OptionalRegionAndProfileFlags() []cli.Flag

OptionalRegionAndProfileFlags provides these flags: OptionalRegionFlag inline overrides region OptionalClusterConfigFlag specifies the cluster profile to read from config OptionalProfileConfigFlag specifies the credentials profile to read from the config OptionalAWSProfileFlag specifies the AWS Profile to use for credential information

func OptionalSchedulingStrategyFlag Uses

func OptionalSchedulingStrategyFlag() []cli.Flag

OptionalSchedulingStrategyFlag allows users to specify the scheduling strategy for their task/service/cluster

func UsageErrorFactory Uses

func UsageErrorFactory(command string) func(*cli.Context, error, bool) error

UsageErrorFactory Returns a usage error function for the specified command

Package flags imports 6 packages (graph) and is imported by 25 packages. Updated 2019-04-20. Refresh now. Tools for package owners.