IAM Roles Do Not Appear in the List When I Launch an Instance
The drop-down list includes instance profiles and not IAM roles, but you can add an IAM role to an instance profile. You must choose the instance profile that has the required IAM role added to it.
Follow these steps to create a new IAM role that is linked to an instance profile, so you can choose the instance profile from the drop-down list when you launch your instance. There are two ways to create a new IAM role that is linked to an instance profile: by using AWS Identity and Access Management console or the AWS Command Line Interface (AWS CLI).
Using the AWS Identity and Access Management console
2. In the navigation pane, under Roles, choose Create role.
3. Choose EC2 as the AWS service, and select EC2 as your use case
4. Attach the appropriate permissions policies for your use case, and choose Next
When you select EC2 as your use case, a trust relationship is created for Amazon Elastic Compute Cloud (Amazon EC2). It also creates an instance profile, gives it the same name as the IAM role, and adds the IAM role to the same Instance profile. If EC2 isn't selected when the IAM role is created, no instance profile or trust relationships are created for Amazon EC2.
Using the AWS CLI
1. Create a file named Test-Role-Trust-Policy.json and paste the following policy in the file:
相關推薦
IAM Roles Do Not Appear in the List When I Launch an Instance
The drop-down list includes instance profiles and not IAM roles, but you can add an IAM role to an instance profile. You must choose the instan
Package gtk+-3.0 was not found in the pkg-config search path
path 二進制 all 項目 有時 rpm fedora ack share 問題描述: 在fedora21系統上通過rpmbuild構建fcitx的二進制包時出現以上錯誤,經老程序員指點:“是相應的開發包沒有安裝” 解決辦法: yum installl gtk3
Ubuntu 16.04 LTS 安裝libvips出現”Package vips was not found in the pkg-config search path”
arp dir exp export ron per gconf 部署 director 使用libvips來操作圖像,libvips的部署參考一個Node.js工程:https://github.com/lovell/sharp 在MAC下安裝很順利,到Linux環境下(
python version 2.7 required,which was not found in the registry
.html except http nco com name desc log all # # script to register Python 2.0 or later for use with win32all # and other extensions that
安裝第三方庫 報錯Python version 2.7 required, which was not found in the registry
try 三方庫 64位 req not 安裝 window 是我 found 我的Windows 系統是64位 這個問題有人說是註冊表沒有 ,手動註冊了一下就好了,但是我註冊的時候運行報錯。 那麽我的做法是: 刪掉本機所有安裝過得python , 1、 先進入控制面板,刪除
[WPF]The type name ‘App’ does not exist in the type '...'的問題
-s tar type quest blog alt http 再次 ges refer to: https://stackoverflow.com/questions/4480087/wpf-the-type-name-app-does-not-exist-in-the-
安裝第三方庫出現 Python version 2.7 required, which was not found in the registry
prefix another odin light admin urn utf n! .py 安裝第三方庫出現 Python version 2.7 required, which was not found in the registry 建立一個文件 register.
Python version 3.3 required, which was not found in the registry
() fix core can war 安裝 錯誤 -c gpa python registry函數語法 在windows下安裝numpy的時候, 出現了"Python version 3.3 required, which was not found in the re
Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state
strong state star intro https ogr enable introduce gin For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, w
selenium之 坑(StaleElementReferenceException: Message: Element not found in the cache...)
ktr ast ebe not selenium 自動 print esp 找不到 今天給大家分享一個selenium中經常會有人遇到的坑: selenium.common.exceptions.StaleElementReferenceException: Messag
【理解】column must appear in the GROUP BY clause or be used in an aggregate function
pin group func 函數 ear -- database nbsp like column "ms.xxx_time" must appear in the GROUP BY clause or be used in an aggregate function -
ueditor百度富文字編輯器linux下報錯: class path resource [config.json] cannot be resolved to absolute file path because it does not reside in the file system
具體報錯資訊如下 java.io.FileNotFoundException: class path resource [config.json] cannot be resolved to absolute file path because it does not reside in the fi
hive啟動報錯之2、The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.
報錯資訊如下: [[email protected] bin]$ ./hive Missing Hive Execution Jar: /opt/soft/apache-hive-1.1.0-cdh5.7.0-bin/lib/hive-exec-*.jar 考慮的
'DataVisualization' does not exist in the namespace 'System.Web.UI'一例解決辦法
之前專案是vs2010 aspx專案,用vs2017開啟後 有一行錯誤:CS0234 C# The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Web.UI' (are
執行Spark SQL報The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.
想啟動spark-sql,結果報了 Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundExcept
[CareerCup] 10.3 Integer not Contain in the File 檔案中不包含的數
10.3 Given an input file with four billion non-negative integers, provide an algorithm to generate an integer which is not contained in the file. Assume
Movement rises to keep humans, not robots, in the driver's seat
Hagerty, the largest insurer of classic cars, wants to save driving as more automakers push to bring self-driving cars to the roads in the future. McKeel H
Python Version 2.7 required which was not found in the registry 問題解決
今天在安裝numpy時,出現了Python Version 2.7 required which was not found in the registry錯誤,解決方案如下。 Python的一些第三方庫只到登錄檔的HKEY_LOCAL_MACHINE\SO
sparksql啟動報錯The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH
要啟動sparksql並訪問到Hive,有兩個步驟: 1、將$HIVE_HOME/conf/hive-site.xml拷貝到$SPARK_HOME/conf下 2、配置MySQL驅動包,將MySQL驅動包放在一個自定義目錄下,在$SPARK_HOME/conf裡面的spark-def
cannot be resolved to absolute file path because it does not reside in the file system
使用maven分模組元件專案的時候,domain中的實體的*.hbm.xml檔案不能被spring掃描到,因為聚合的時候核心包已經達成jar包了,所以要去jar中去找hbm.xml檔案 <!--注入sessionFactory --> <bea