Skip to content

Commit 600ecfb

Browse files
committed
increase version number
1 parent 1470d1a commit 600ecfb

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
106106
- Fix A record
107107

108108

109-
## [1.1.10] - 2024-06-05
109+
## [1.1.10] - 2024-06-07
110110
### Added
111111

112112
- Add option to submit a feature request
@@ -118,3 +118,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
118118
### Fixed
119119

120120

121+
## [1.1.11] - 2024-06-07
122+
### Added
123+
124+
125+
### Changed
126+
127+
128+
### Fixed
129+
130+
- fix wording for A record
131+
- update a few prompts to be more explicit

bin/cli/actions/delete.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ import {
2222
getCLIInstallationFolder,
2323
loadHostingConfiguration,
2424
} from "../utils/helper";
25-
import { CDKCommand} from "../shared/types";
2625
import { hostingInfrastructureDeletionConfirmation } from "../utils/prompt_questions";
2726
import checkAWSConnection, {
2827
checkCertificateExists,
29-
checkCFCNAMEExists,
28+
checkCFARecordExists,
3029
deleteACMCertificate,
3130
deleteCFCNAME,
3231
getSSMParameter,
@@ -68,7 +67,7 @@ export async function handleDeleteCommand() {
6867
const domainName = await getSSMParameter(SSM_DOMAIN_STR);
6968

7069
if(domainName){
71-
const cFCNAMEExists = await checkCFCNAMEExists(
70+
const cFCNAMEExists = await checkCFARecordExists(
7271
hostingConfiguration.domainName,
7372
domainName,
7473
hostingConfiguration.hostedZoneId

bin/cli/actions/deploy.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import {
3131
import checkAWSConnection, {
3232
checkBucketExists,
3333
checkCertificateExists,
34-
checkCFCNAMEExists,
34+
checkCFARecordExists,
3535
createACMCertificate,
36-
createCFCNAME,
36+
createCFARecord,
3737
getPipelineStatus,
3838
getSSMParameter,
3939
pendingConnections,
@@ -198,7 +198,7 @@ export default async function handleDeployCommand() {
198198

199199
if (hostingConfiguration.domainName) {
200200
if (hostingConfiguration.hostedZoneId) {
201-
const cFCNAMEExists = await checkCFCNAMEExists(
201+
const cFCNAMEExists = await checkCFARecordExists(
202202
hostingConfiguration.domainName,
203203
domainName,
204204
hostingConfiguration.hostedZoneId
@@ -207,7 +207,7 @@ export default async function handleDeployCommand() {
207207
if (!cFCNAMEExists) {
208208
const associate = await startPrompt(cloudFrontAssociationQuestion);
209209
if (associate.value == "yes") {
210-
await createCFCNAME(
210+
await createCFARecord(
211211
hostingConfiguration.domainName,
212212
domainName,
213213
hostingConfiguration.hostedZoneId
@@ -218,10 +218,7 @@ export default async function handleDeployCommand() {
218218
`> Domain name '${hostingConfiguration.domainName}' is already associated with the CloudFront distribution.\n`
219219
);
220220
}
221-
222-
console.log(
223-
`> ${hostingConfiguration.domainName} --> https://${domainName} \n`
224-
);
221+
225222
} else {
226223
console.log(
227224
`\nJust a few more steps to get your domain name up and running!`
@@ -251,7 +248,7 @@ export default async function handleDeployCommand() {
251248
}
252249
if (isRepoConfig(hostingConfiguration)) {
253250
console.log(
254-
"\nIn the future, whenever you push changes to Github, an automatic pipeline will be triggered to deploy the new version."
251+
"\nIn the future, whenever you push changes to your Github repository, an automatic pipeline will be triggered to deploy the new version."
255252
);
256253
} else {
257254
console.log(

bin/cli/actions/show.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import checkAWSConnection, {
19-
checkCFCNAMEExists,
19+
checkCFARecordExists,
2020
checkCertificateExists,
2121
getSSMParameter,
2222
} from "../utils/awsSDKUtil";
@@ -57,7 +57,7 @@ export async function handleShowCommand() {
5757
);
5858
if (certificateArn && status == "ISSUED") {
5959
if (hostingConfiguration.hostedZoneId) {
60-
const cFCNAMEExists = await checkCFCNAMEExists(
60+
const cFCNAMEExists = await checkCFARecordExists(
6161
hostingConfiguration.domainName,
6262
domainName,
6363
hostingConfiguration.hostedZoneId

bin/cli/utils/awsSDKUtil.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export async function waitCertificateToBeIssued(
228228
* @param {string} cloudFrontDomainName - The DNS name of the CloudFront distribution.
229229
* @param {string} hostedZoneId - The ID of the Route 53 hosted zone where the Alias resource record will be created/updated.
230230
*/
231-
export async function createCFCNAME(
231+
export async function createCFARecord(
232232
domainName: string,
233233
cloudFrontDomainName: string,
234234
hostedZoneId: string
@@ -254,11 +254,10 @@ export async function createCFCNAME(
254254
};
255255

256256
try {
257-
//await clientR53.changeResourceRecordSets(params);
258257
const command = new ChangeResourceRecordSetsCommand(input);
259258
await clientR53.send(command);
260259
console.log(
261-
`\nA new CNAME record has been added/updated to your DNS records that points to your CloudFront distribution: \n`
260+
`\nA new A Record has been added/updated to your DNS records that points to your CloudFront distribution: \n`
262261
);
263262
console.log(`> ${domainName} -> ${cloudFrontDomainName}\n`);
264263
console.log(`It may take a few minutes to reflect the change.`);
@@ -297,7 +296,7 @@ export async function deleteCFCNAME(
297296
await clientR53.send(command);
298297

299298
console.log(
300-
`\nThe CNAME record has been deleted from your DNS records: \n`
299+
`\nThe A Record has been deleted from your DNS records: \n`
301300
);
302301
console.log(`> ${domainName} -> ${cloudFrontDomainName}\n`);
303302
console.log(`It may take a few minutes to reflect the change.`);
@@ -307,7 +306,7 @@ export async function deleteCFCNAME(
307306
}
308307
}
309308

310-
export async function checkCFCNAMEExists(
309+
export async function checkCFARecordExists(
311310
domainName: string,
312311
cloudFrontDomainName: string,
313312
hostedZoneId: string
@@ -678,7 +677,7 @@ export async function startPipelineExecution() {
678677
if (pipelineStatus.status !== "InProgress") {
679678
const command = new StartPipelineExecutionCommand(params);
680679
const response = await clientCodePipeline.send(command);
681-
console.log(`Pipeline execution started successfully`);
680+
console.log(`The pipeline has been initiated following the recent deployment to apply any changes made.`);
682681
}else{
683682
console.log("Pipeline is already in progress.");
684683
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/cloudfront-hosting-toolkit",
3-
"version": "1.1.10",
3+
"version": "1.1.11",
44
"description": "CloudFront Hosting Toolkit offers the convenience of a managed frontend hosting service while retaining full control over the hosting and deployment infrastructure to make it your own.",
55
"license": "Apache-2.0",
66
"bin": {

0 commit comments

Comments
 (0)