

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# License Manager でセルフマネージドライセンスを共有する
<a name="share-license-configuration"></a>

を使用して AWS Resource Access Manager 、任意の AWS アカウントまたは を通じてセルフマネージドライセンスを共有できます AWS Organizations。詳細については、「 *AWS RAM ユーザーガイド*[」の AWS 「リソースの共有](https://docs.aws.amazon.com/ram/latest/userguide/getting-started-sharing.html)」を参照してください。

## Organization とセルフマネージドライセンスを共有する AWS
<a name="share-license-configuration-with-org"></a>

**前提条件**  
この手順を完了するには、 AWS Organization を License Manager にリンクする必要があります。詳細については、「[License Manager のマネージドライセンス設定](settings-managed-licenses.md)」を参照してください。

**ライセンスを共有する**  
セルフマネージドライセンスを AWS Organization と共有するには、次の手順に従います。

1. License Maneger コンソールを開きます [https://console.aws.amazon.com/license-manager/](https://console.aws.amazon.com/license-manager/)。

1. 左のナビゲーションペインで、**[セルフマネージドライセンス]** を選択します。

1. セルフマネージドライセンスを選択します。

1. **アクション**メニューから** AWS 組織アカウントと共有**を選択します。

## サポートされるアカウントのクォータ
<a name="share-license-configuration-quotas"></a>

2023 年 10 月 14 日より AWS License Manager 前に でライセンス共有を有効にした場合、License Manager が組織内でサポートするアカウントの最大数のクォータは、新しいデフォルトの最大数よりも小さくなります。次のセクションで説明する の API オペレーションを使用して AWS RAM 、このクォータを増やすことができます。License Manager のデフォルトクォータについて詳しくは、「AWS 全般のリファレンス ガイド」の「[ライセンスで使用するクォータ](https://docs.aws.amazon.com/general/latest/gr/licensemanager.html#limits_license-manager)」を参照してください。

### 前提条件
<a name="share-license-configuration-quotas-prerequisites"></a>

以下の手順を完了するには、次のアクセス許可がある組織の管理アカウントのプリンシパルとしてサインインする必要があります。
+ `ram:EnableSharingWithAwsOrganization`
+ `iam:CreateServiceLinkedRole`
+ `organizations:enableAWSServiceAccess`
+ `organizations:DescribeOrganization`

### サポートされるアカウントのクォータを増やす
<a name="share-license-configuration-quotas-increase"></a>

以下の手順を実行することで、`Number of accounts per organization for License Manager` の現在のクォータを現在のデフォルト最大数まで増やすことができます。

**License Manager でサポートされるアカウントのクォータを増やすには**

1. [https://docs.aws.amazon.com/cli/latest/reference/organizations/describe-organization.html](https://docs.aws.amazon.com/cli/latest/reference/organizations/describe-organization.html) AWS CLI コマンドを使用して、 オペレーションを使用して組織の ARN を決定します。

   ```
   aws organizations describe-organization
   
   {
   	"Organization": {
   		"Id": "o-abcde12345",
   		"Arn": "arn:aws:organizations::111122223333:organization/o-abcde12345",
   		"FeatureSet": "ALL",
   		"MasterAccountArn": "arn:aws:organizations::111122223333:account/o-abcde12345/111122223333",
   		"MasterAccountId": "111122223333",
   		"MasterAccountEmail": "name+orgsidentifier@example.com",
   		"AvailablePolicyTypes": [
   				{
   					"Type": "SERVICE_CONTROL_POLICY",
   					"Status": "ENABLED"
   				}
   		]
   	}
   }
   ```

1. [https://docs.aws.amazon.com/cli/latest/reference/ram/get-resource-shares.html](https://docs.aws.amazon.com/cli/latest/reference/ram/get-resource-shares.html) AWS CLI コマンドを使用して、 オペレーションを使用して組織の ARN を決定します。

   ```
   aws ram  get-resource-shares --resource-owner SELF --tag-filters tagKey=Service,tagValues=LicenseManager --region {{us-east-1}}
   
   {
   	"resourceShares": [
   		{
   				"resourceShareArn": "arn:aws:ram:us-east-1:111122223333:resource-share/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
   				"name": "licenseManagerResourceShare-111122223333",
   				"owningAccountId": "111122223333",
   				"allowExternalPrincipals": true,
   				"status": "ACTIVE",
   				"tags": [
   					{
   						"key": "Service",
   						"value": "LicenseManager"
   					}
   				],
   				"creationTime": "2023-10-04T12:52:10.021000-07:00",
   				"lastUpdatedTime": "2023-10-04T12:52:10.021000-07:00",
   				"featureSet": "STANDARD"
   		}
   	]
   }
   ```

1. [https://docs.aws.amazon.com/cli/latest/reference/ram/enable-sharing-with-aws-organization.html](https://docs.aws.amazon.com/cli/latest/reference/ram/enable-sharing-with-aws-organization.html) AWS CLI コマンドを使用して、以下とのリソース共有を有効にします AWS RAM。

   ```
   aws ram enable-sharing-with-aws-organization
   
   {
   	"returnValue": true
   }
   ```

   [https://docs.aws.amazon.com/cli/latest/reference/organizations/list-aws-service-access-for-organization.html](https://docs.aws.amazon.com/cli/latest/reference/organizations/list-aws-service-access-for-organization.html) AWS CLI コマンドを使用して、Organizations リストのサービスプリンシパルが License Manager で有効になっていること、および以下を確認できます AWS RAM。

   ```
   aws organizations list-aws-service-access-for-organization
   
   {
   	"EnabledServicePrincipals": [
   		{
   				"ServicePrincipal": "license-manager.amazonaws.com",
   				"DateEnabled": "2023-10-04T12:50:59.814000-07:00"
   		},
   		{
   				"ServicePrincipal": "license-manager.member-account.amazonaws.com",
   				"DateEnabled": "2023-10-04T12:50:59.565000-07:00"
   		},
   		{
   				"ServicePrincipal": "ram.amazonaws.com",
   				"DateEnabled": "2023-10-04T13:06:34.771000-07:00"
   		}
   	]
   }
   ```
**重要**  
 が組織のこのオペレーションを完了する AWS RAM までに最大 6 時間かかる場合があります。この処理が完了するまでは次に進むことができません。

1. [https://docs.aws.amazon.com/cli/latest/reference/ram/associate-resource-share.html](https://docs.aws.amazon.com/cli/latest/reference/ram/associate-resource-share.html) AWS CLI コマンドを使用して、License Manager リソース共有を組織と関連付けます。

   ```
   aws ram associate-resource-share --resource-share-arn arn:aws:ram:{{us-east-1}}:{{111122223333}}:resource-share/{{a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} --principals arn:aws:organizations::{{111122223333}}:organization/{{o-abcde12345}} --region {{us-east-1}}
   
   {
   	"resourceShareAssociations": [
   		{
   				"resourceShareArn": "arn:aws:ram:us-east-1:111122223333:resource-share/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
   				"associatedEntity": "arn:aws:organizations::111122223333:organization/o-abcde12345",
   				"associationType": "PRINCIPAL",
   				"status": "ASSOCIATING",
   				"external": false
   		}
   	]
   }
   ```

   [https://docs.aws.amazon.com/cli/latest/reference/ram/get-resource-share-associations.html](https://docs.aws.amazon.com/cli/latest/reference/ram/get-resource-share-associations.html) AWS CLI コマンドを使用して、リソース共有の関連付け`status`が であることを確認します`ASSOCIATED`。

   ```
   aws ram get-resource-share-associations --association-type "PRINCIPAL" --principal arn:aws:organizations::{{111122223333}}:organization/{{o-abcde12345}}--resource-share-arns arn:aws:ram:{{us-east-1}}:{{111122223333}}:resource-share/{{a1b2c3d4-5678-90ab-cdef-EXAMPLE11111}} --region {{us-east-1}}
   				
   {
   	"resourceShareAssociations": [
   		{
   				"resourceShareArn": "arn:aws:ram:us-east-1:111122223333:resource-share/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
   				"resourceShareName": "licenseManagerResourceShare-111122223333",
   				"associatedEntity": "arn:aws:organizations::111122223333:organization/o-abcde12345",
   				"associationType": "PRINCIPAL",
   				"status": "ASSOCIATED",
   				"creationTime": "2023-10-04T13:12:33.422000-07:00",
   				"lastUpdatedTime": "2023-10-04T13:12:34.663000-07:00",
   				"external": false
   		}
   	]
   }
   ```