forked from awslabs/aws-saas-boost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support S3 storage for tenants as AppConfig extension. (awslabs#463)
* Support S3 storage for tenants as AppConfig extension. This commit adds support for configuring S3 support as part of your SaaS Boost application. If configured a single S3 bucket will be created for all your tenants to read/write from, only allowable under a specific prefix passed as an environment variable to the ECS Task. Related environment variables for use: - S3_BUCKET: the name of the s3 bucket created - S3_ROOT_PREFIX: the prefix under which this tenant is allowed to read/write files * Address PR comments Co-authored-by: PoeppingT <[email protected]>
- Loading branch information
Showing
25 changed files
with
518 additions
and
85 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import { PropTypes } from 'prop-types' | ||
import React, { Fragment } from 'react' | ||
import { | ||
Row, | ||
Col, | ||
Card, | ||
CardBody, | ||
CardHeader, | ||
} from 'reactstrap' | ||
import { | ||
SaasBoostCheckbox, | ||
} from '../../components/FormComponents' | ||
import 'rc-slider/assets/index.css' | ||
|
||
|
||
export default class ObjectStoreSubform extends React.Component { | ||
render() { | ||
return ( | ||
<Fragment> | ||
<Row className="mt-3"> | ||
<Col xs={12}> | ||
<Card> | ||
<CardHeader>Object Storage</CardHeader> | ||
<CardBody> | ||
<SaasBoostCheckbox | ||
id={this.props.formikServicePrefix + '.provisionObjectStorage'} | ||
name={this.props.formikServicePrefix + '.provisionObjectStorage'} | ||
disabled={this.props.isLocked} | ||
label="Provision an S3 bucket for the application." | ||
tooltip="If selected, an S3 bucket will be created on submission and provided as environment variables to the application." | ||
/> | ||
</CardBody> | ||
</Card> | ||
</Col> | ||
</Row> | ||
</Fragment> | ||
) | ||
} | ||
} | ||
|
||
ObjectStoreSubform.propTypes = { | ||
isLocked: PropTypes.bool, | ||
formikServicePrefix: PropTypes.string, | ||
} |
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
12 changes: 0 additions & 12 deletions
12
resources/custom-resources/app-services-ecr-macro/src/test/resources/template.json
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.