Skip to content

Commit f49a521

Browse files
author
awstools
committed
feat(client-apprunner): This release allows an App Runner customer to specify a custom source directory to run the build & start command. This change allows App Runner to support monorepo based repositories
1 parent 33e5436 commit f49a521

File tree

8 files changed

+67
-39
lines changed

8 files changed

+67
-39
lines changed

clients/client-apprunner/src/commands/CreateServiceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
7474
* },
7575
* },
7676
* },
77+
* SourceDirectory: "STRING_VALUE",
7778
* },
7879
* ImageRepository: { // ImageRepository
7980
* ImageIdentifier: "STRING_VALUE", // required
@@ -166,6 +167,7 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
166167
* // },
167168
* // },
168169
* // },
170+
* // SourceDirectory: "STRING_VALUE",
169171
* // },
170172
* // ImageRepository: { // ImageRepository
171173
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/commands/DeleteServiceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
9191
* // },
9292
* // },
9393
* // },
94+
* // SourceDirectory: "STRING_VALUE",
9495
* // },
9596
* // ImageRepository: { // ImageRepository
9697
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/commands/DescribeServiceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface DescribeServiceCommandOutput extends DescribeServiceResponse, _
8585
* // },
8686
* // },
8787
* // },
88+
* // SourceDirectory: "STRING_VALUE",
8889
* // },
8990
* // ImageRepository: { // ImageRepository
9091
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/commands/PauseServiceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export interface PauseServiceCommandOutput extends PauseServiceResponse, __Metad
8484
* // },
8585
* // },
8686
* // },
87+
* // SourceDirectory: "STRING_VALUE",
8788
* // },
8889
* // ImageRepository: { // ImageRepository
8990
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/commands/ResumeServiceCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export interface ResumeServiceCommandOutput extends ResumeServiceResponse, __Met
8787
* // },
8888
* // },
8989
* // },
90+
* // SourceDirectory: "STRING_VALUE",
9091
* // },
9192
* // ImageRepository: { // ImageRepository
9293
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/commands/UpdateServiceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
7878
* },
7979
* },
8080
* },
81+
* SourceDirectory: "STRING_VALUE",
8182
* },
8283
* ImageRepository: { // ImageRepository
8384
* ImageIdentifier: "STRING_VALUE", // required
@@ -161,6 +162,7 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
161162
* // },
162163
* // },
163164
* // },
165+
* // SourceDirectory: "STRING_VALUE",
164166
* // },
165167
* // ImageRepository: { // ImageRepository
166168
* // ImageIdentifier: "STRING_VALUE", // required

clients/client-apprunner/src/models/models_0.ts

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ export interface CreateAutoScalingConfigurationRequest {
278278
* <p>A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number
279279
* <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p>
280280
* <note>
281-
* <p>Prior to the release of <a href="https://docs.aws.amazon.com/apprunner/latest/relnotes/release-yyyy-mm-dd-asc-improvements.html">Managing auto
282-
* scaling</a>, the name <code>DefaultConfiguration</code> was reserved. </p>
281+
* <p>Prior to the release of <a href="https://docs.aws.amazon.com/apprunner/latest/relnotes/release-2023-09-22-auto-scale-config.html">Auto scale
282+
* configuration enhancements</a>, the name <code>DefaultConfiguration</code> was reserved. </p>
283283
* <p>This restriction is no longer in place. You can now manage <code>DefaultConfiguration</code> the same way you manage your custom auto scaling
284284
* configurations. This means you can do the following with the <code>DefaultConfiguration</code> that App Runner provides:</p>
285285
* <ul>
@@ -920,7 +920,7 @@ export interface ServiceObservabilityConfiguration {
920920
* <p>The Amazon Resource Name (ARN) of the observability configuration that is associated with the service. Specified only when
921921
* <code>ObservabilityEnabled</code> is <code>true</code>.</p>
922922
* <p>Specify an ARN with a name and a revision number to associate that revision. For example:
923-
* <code>arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3</code>
923+
* <code>arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing/3</code>
924924
* </p>
925925
* <p>Specify just the name to associate the latest revision. For example:
926926
* <code>arn:aws:apprunner:us-east-1:123456789012:observabilityconfiguration/xray-tracing</code>
@@ -987,13 +987,15 @@ export interface CodeConfigurationValues {
987987

988988
/**
989989
* @public
990-
* <p>The command App Runner runs to build your application.</p>
990+
* <p>The command App Runner runs to build your
991+
* application.</p>
991992
*/
992993
BuildCommand?: string;
993994

994995
/**
995996
* @public
996-
* <p>The command App Runner runs to start your application.</p>
997+
* <p>The command App Runner runs to start your
998+
* application.</p>
997999
*/
9981000
StartCommand?: string;
9991001

@@ -1013,20 +1015,17 @@ export interface CodeConfigurationValues {
10131015

10141016
/**
10151017
* @public
1016-
* <p>An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable.
1017-
* The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.</p>
1018+
* <p>An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported
1019+
* values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager
1020+
* Parameter Store.</p>
10181021
* <note>
10191022
* <ul>
10201023
* <li>
1021-
* <p>
1022-
* If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching,
1023-
* you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
1024-
* </p>
1024+
* <p> If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching, you can use
1025+
* either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified. </p>
10251026
* </li>
10261027
* <li>
1027-
* <p>
1028-
* Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported.
1029-
* </p>
1028+
* <p> Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported. </p>
10301029
* </li>
10311030
* </ul>
10321031
* </note>
@@ -1138,6 +1137,13 @@ export interface CodeRepository {
11381137
* </note>
11391138
*/
11401139
CodeConfiguration?: CodeConfiguration;
1140+
1141+
/**
1142+
* @public
1143+
* <p>The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute
1144+
* from root and, if not specified, defaults to the repository root.</p>
1145+
*/
1146+
SourceDirectory?: string;
11411147
}
11421148

11431149
/**
@@ -1168,20 +1174,17 @@ export interface ImageConfiguration {
11681174

11691175
/**
11701176
* @public
1171-
* <p>An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable.
1172-
* The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.</p>
1177+
* <p>An array of key-value pairs representing the secrets and parameters that get referenced to your service as an environment variable. The supported
1178+
* values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager
1179+
* Parameter Store.</p>
11731180
* <note>
11741181
* <ul>
11751182
* <li>
1176-
* <p>
1177-
* If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching,
1178-
* you can use either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified.
1179-
* </p>
1183+
* <p> If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Amazon Web Services Region as the service that you're launching, you can use
1184+
* either the full ARN or name of the secret. If the parameter exists in a different Region, then the full ARN must be specified. </p>
11801185
* </li>
11811186
* <li>
1182-
* <p>
1183-
* Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported.
1184-
* </p>
1187+
* <p> Currently, cross account referencing of Amazon Web Services Systems Manager Parameter Store parameter is not supported. </p>
11851188
* </li>
11861189
* </ul>
11871190
* </note>
@@ -1235,7 +1238,8 @@ export interface ImageRepository {
12351238
export interface SourceConfiguration {
12361239
/**
12371240
* @public
1238-
* <p>The description of a source code repository.</p>
1241+
* <p>The description of a source code
1242+
* repository.</p>
12391243
* <p>You must provide either this member or <code>ImageRepository</code> (but not both).</p>
12401244
*/
12411245
CodeRepository?: CodeRepository;
@@ -1461,9 +1465,9 @@ export interface Service {
14611465
* <ul>
14621466
* <li>
14631467
* <p>
1464-
* <code>CREATE_FAILED</code> – The service failed to create. The failed service isn't usable, and still counts towards your service quota.
1465-
* To troubleshoot this failure, read the failure events and logs, change any
1466-
* parameters that need to be fixed, and rebuild your service using <code>UpdateService</code>.</p>
1468+
* <code>CREATE_FAILED</code> – The service failed to create. The failed service isn't usable, and still counts towards your service quota. To
1469+
* troubleshoot this failure, read the failure events and logs, change any parameters that need to be fixed, and rebuild your service using
1470+
* <code>UpdateService</code>.</p>
14671471
* </li>
14681472
* <li>
14691473
* <p>
@@ -2654,9 +2658,9 @@ export interface ServiceSummary {
26542658
* <ul>
26552659
* <li>
26562660
* <p>
2657-
* <code>CREATE_FAILED</code> – The service failed to create. The failed service isn't usable, and still counts towards your service quota.
2658-
* To troubleshoot this failure, read the failure events and logs, change any
2659-
* parameters that need to be fixed, and rebuild your service using <code>UpdateService</code>.</p>
2661+
* <code>CREATE_FAILED</code> – The service failed to create. The failed service isn't usable, and still counts towards your service quota. To
2662+
* troubleshoot this failure, read the failure events and logs, change any parameters that need to be fixed, and rebuild your service using
2663+
* <code>UpdateService</code>.</p>
26602664
* </li>
26612665
* <li>
26622666
* <p>

0 commit comments

Comments
 (0)