This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Trying to get this to work: | |
https://docs.saltstack.com/en/latest/topics/cloud/aws.html | |
## getting this error | |
[root@salt:~] #salt-cloud -p base_ec2 ami.example.com | |
[ERROR ] Profile base_ec2 is not defined | |
Error: | |
Profile base_ec2 is not defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## used example verbatim. Same error | |
[root@salt:~] #salt-cloud -p base_ec2 ami.example.com | |
[ERROR ] Profile base_ec2 is not defined | |
Error: | |
Profile base_ec2 is not defined | |
## this is my cloud.providers file: | |
# Note: This example is for /etc/salt/cloud.providers or any file in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## same error | |
[root@salt:~] #salt-cloud -p base_ec2 ops.example.com | |
[ERROR ] Profile base_ec2 is not defined | |
Error: | |
Profile base_ec2 is not defined | |
## /etc/salt/cloud.profiles.d/salt_profiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@salt:~] #salt-cloud -p base_ec2 ops.example.com -l debug | |
[DEBUG ] Reading configuration from /etc/salt/cloud | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt.ewxample.com | |
[DEBUG ] Missing configuration file: /etc/salt/cloud.providers | |
[DEBUG ] Missing configuration file: /etc/salt/cloud.profiles | |
[DEBUG ] Configuration file path: /etc/salt/cloud | |
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged. | |
[INFO ] salt-cloud starting | |
[DEBUG ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@salt:~] #salt-cloud --list-providers | |
Error: There was an error listing providers: There are no cloud providers configured. | |
[root@salt:~] #ls -lh /etc/salt/cloud.providers.d/ec2_config | |
-rw-r--r--. 1 root root 3.6K Sep 13 16:45 /etc/salt/cloud.providers.d/ec2_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## getting auth failure on salt-cloud command | |
[root@salt:~] #salt-cloud -p base_ec2_public ops.example.com | |
[ERROR ] AWS Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': '3a5e33e2-d1a9-44fa-983c-26691d4f8ee7'} | |
[ERROR ] AWS Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': '163079c6-2b79-4301-80c8-77ba0d7c896d'} | |
[ERROR ] There was a profile error: string indices must be integers, not str | |
# /etc/salt/cloud.providers.d/aws.conf | |
# Note: This example is for /etc/salt/cloud.providers or any file in the | |
# /etc/salt/cloud.providers.d/ directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## still getting auth error | |
[root@salt:~] #salt-cloud -p base_ec2_public ops.example.com | |
[ERROR ] AWS Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': 'daf40071-9226-424e-a237-2136c7da085c'} | |
[ERROR ] AWS Response Status Code and Error: [401 401 Client Error: Unauthorized] {'Errors': {'Error': {'Message': 'AWS was not able to validate the provided access credentials', 'Code': 'AuthFailure'}}, 'RequestID': '828d8856-c551-41bc-a3ef-871106432a85'} | |
[ERROR ] There was a profile error: string indices must be integers, not str | |
## cloud.providers file: | |
# Note: This example is for /etc/salt/cloud.providers or any file in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## region error | |
[root@vendoronsite ~]# salt-cloud -p base_ec2_private USAWSCD.us.company.com | |
Usage: salt-cloud | |
salt-cloud: error: There was a profile error: The specified availability zone isn't valid in this region: us-east-1 | |
## cloud providers definition | |
location: us-east-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## aws error | |
[root@vendoronsite ~]# salt-cloud -p base_ec2_public USAWSCDVS0000.us.company.com | |
[ERROR ] AWS Response Status Code and Error: [400 400 Client Error: Bad Request] {'Errors': {'Error': {'Message': 'Network interfaces and an instance-level security groups may not be specified on the same request', 'Code': 'InvalidParameterCombination'}}, 'RequestID': '84eaded3-cfcd-41bf-bd96-ef3bc6d14879'} | |
[ERROR ] Error requesting instance: Errors | |
Error: There was a profile error: Failed to deploy VM | |
## This is my profile | |
base_ec2_public: | |
provider: my-ec2-us-east-public-ips |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base_ec2_public: | |
provider: my-ec2-us-east-public-ips | |
image: ami-16b72301 | |
size: c4.large | |
ssh_username: root | |
network_interfaces: | |
- DeviceIndex: 0 | |
PrivateIpAddresses: | |
- Primary: True | |
#auto assign public ip (not EIP) |
OlderNewer