问题
I am working off the Spinnaker Getting Started guide. Spinnaker is now running on an EC2 instance and accessible via http://localhost:9000.
When I try to create a new Application I understand that expect my-aws-account
and my-google-account
options. I am however seeing no options on this screen. Any idea about what could be going wrong?
回答1:
- Create an AWS User account for Spinnaker
- In AWS Console, open AWS Identity & Access Management -> Users -> Create New Users.
- Enter a username and hit Create.
- Create an access key for the user.
- Click Download Credentials, you will need them later.
- Click Close.
- Apply permissions to the new user
- Click on the username you entered for a more detailed screen.
- On the Summary page, click on the Permissions tab.
- Attach a managed policy
- Click Attach Policy.
- Click the checkbox next to PowerUserAccess, then click Attach Policy.
- Create an Inline Policy
- Click on the Inline Policies header, then click the link to create an inline policy.
- Click Select for Policy Generator.
- Select AWS Identity and Access Management from the AWS Service pulldown.
- Select PassRole for Actions.
- Type
*
(the asterisk character) in the Amazon Resource Name (ARN) box. - Click Add Statement, then Next Step.
- Click Apply Policy.
- Add AWS credentials to Spinnaker
- Connect to the Spinnaker instance (I'm assuming you're using Linux)
- Run the command:
sudo mkdir /home/spinnaker/.aws
- Run the command:
sudo vim /home/spinnaker/.aws/credentials
- Add the following lines to the file, then save and quit:
- Make sure to replace
my-aws-account
to the name of your AWS account - Make sure to replace the values of the key ID and access key with the credentials you downloaded in Step 1, Part 4
- Make sure to replace
[my-aws-account] aws_access_key_id = AKIAIOSFODNN7EXAMPLE aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- Update the default Spinnaker configuration files
- Run the command:
sudo vi /etc/default/spinnaker
- Locate the line
SPINNAKER_AWS_ENABLED
, and change the value totrue
- Locate the line
SPINNAKER_AWS_DEFAULT_REGION
, and change the value to the region where your Spinnaker instance runs (e.g.us-east-1
, without the quotes) - Save and quit
- Run the command:
- Update the local Spinnaker configuration files (these override the stock YAML files that come with the installation of Spinnaker)
- Run the command:
sudo vim /opt/spinnaker/config/spinnaker-local.yml
- Locate
providers
, then locateaws
beneath that - Beneath
aws
, locateenabled
and change the value totrue
- Beneath
aws
, locatedefaultRegion
and change the value to the region where your Spinnaker instance runs (e.g.us-east-1
, without the quotes) - Beneath
primaryCredentials
, locatename
and change the value tomy-aws-account
- Make sure to replace
my-aws-account
to the name of your AWS account
- Make sure to replace
- Save and quit
- Run the command:
- Restart Spinnaker
- Run the command:
sudo /opt/spinnaker/scripts/reconfigure_spinnaker.sh
- Run the command:
sudo restart spinnaker
- Run the command:
- Reset the tunnel from your local machine to the Spinnaker instance
来源:https://stackoverflow.com/questions/34788034/unable-to-create-an-application-no-accounts-listed-in-dashed-rectangle-beside