[chef] Not able to use IAM role with knife ec2 command


Chronological Thread 
  • From: Varun Shankar < >
  • To:
  • Subject: [chef] Not able to use IAM role with knife ec2 command
  • Date: Thu, 23 Oct 2014 15:31:22 +0530

I am using following version:
knife-ec2-0.8.0
Chef: 11.16.0

--use-iam-profile
Use the Identity and Access Management (IAM) that is assigned to the current machine. Default value: false.

But I don't see this option available in knife ec2 command.

~]$ knife ec2 server list --use-iam-profile
Error: invalid option: --use-iam-profile
USAGE: knife ec2 server list (options)
    -A, --aws-access-key-id KEY      Your AWS Access Key ID
        --aws-credential-file FILE   File containing AWS credentials as used by aws cmdline tools
    -K SECRET,                       Your AWS API Secret Access Key
        --aws-secret-access-key
        --availability-zone          Show availability zones
    -s, --server-url URL             Chef Server URL
        --chef-zero-host HOST        Host to start chef-zero on
        --chef-zero-port PORT        Port to start chef-zero on
    -k, --key KEY                    API Client Key
        --[no-]color                 Use colored output, defaults to false on Windows, true otherwise
    -c, --config CONFIG              The configuration file to use
        --defaults                   Accept default values for all questions
    -d, --disable-editing            Do not open EDITOR, just accept the data as is
    -e, --editor EDITOR              Set the editor to use for interactive commands
    -E, --environment ENVIRONMENT    Set the Chef environment (except for in searches, where this will be flagrantly ignored)
    -F, --format FORMAT              Which format to use for output
    -z, --local-mode                 Point knife commands at local repository instead of server
    -n, --no-name                    Do not display name tag in output
    -u, --user USER                  API Client Username
        --print-after                Show the data after a destructive operation
        --region REGION              Your AWS region
    -t, --tags TAG1,TAG2             List of tags to output
    -V, --verbose                    More verbose output. Use twice for max verbosity
    -v, --version                    Show chef version
    -y, --yes                        Say yes to all prompts for confirmation
    -h, --help                       Show this message



Archive powered by MHonArc 2.6.16.

§